Package de.hybris.platform.testframework
Class HybrisTestLogic
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisTestLogic
-
public class HybrisTestLogic extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HybrisTestLogic(JaloSessionHolder jaloSessionHolder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish()static CurrencygetOrCreateCurrency(java.lang.String isoCode)Gets or creates (if not existent) currency to given iso code.static LanguagegetOrCreateLanguage(java.lang.String isoCode)Gets or creates (if not existent) language to given iso code.voidinit()Sets the current session and default language.static booleanintenseChecksActivated()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
-
-
-
Constructor Detail
-
HybrisTestLogic
public HybrisTestLogic(JaloSessionHolder jaloSessionHolder)
-
-
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
-
init
public void init() throws JaloSystemExceptionSets 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(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
-
-