Class HybrisTestLogic

java.lang.Object
de.hybris.platform.testframework.HybrisTestLogic

public class HybrisTestLogic extends Object
  • Constructor Details

  • Method Details

    • intenseChecksActivated

      public static boolean intenseChecksActivated()
      returns true if property "test.intense.checks" is activated if active, then tests like - ApplicationContextCheckRunListener (compares all beans before and after testrun) - TableSizeCheckRunListner ( compares ALL table sizes (SELECT COUNT) before and after testrun) are being executed
    • init

      public void init() throws JaloSystemException
      Sets the current session and default language.
      Throws:
      JaloSystemException - there was a security problem while creating the session
    • finish

      public void finish() throws JaloSecurityException
      Throws:
      JaloSecurityException
    • getOrCreateLanguage

      public static Language getOrCreateLanguage(String isoCode) throws JaloSystemException
      Gets or creates (if not existent) language to given iso code.
      Parameters:
      isoCode - iso code of language
      Returns:
      language to given iso code
      Throws:
      JaloSystemException - thrown if language will be created but still exists
    • getOrCreateCurrency

      public static Currency getOrCreateCurrency(String isoCode) throws JaloSystemException
      Gets or creates (if not existent) currency to given iso code.
      Parameters:
      isoCode - iso code of currency
      Returns:
      Currency to given iso code
      Throws:
      JaloSystemException - thrown if currency will be created but still exists