Class HybrisTestLogic


  • public class HybrisTestLogic
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finish()  
      static Currency getOrCreateCurrency​(java.lang.String isoCode)
      Gets or creates (if not existent) currency to given iso code.
      static Language getOrCreateLanguage​(java.lang.String isoCode)
      Gets or creates (if not existent) language to given iso code.
      void init()
      Sets the current session and default language.
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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
      • getOrCreateLanguage

        public static Language getOrCreateLanguage​(java.lang.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​(java.lang.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