Package de.hybris.platform.testframework
Class HybrisTestLogic
java.lang.Object
de.hybris.platform.testframework.HybrisTestLogic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()static CurrencygetOrCreateCurrency(String isoCode) Gets or creates (if not existent) currency to given iso code.static LanguagegetOrCreateLanguage(String isoCode) Gets or creates (if not existent) language to given iso code.voidinit()Sets the current session and default language.static booleanreturns 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 Details
-
HybrisTestLogic
-
-
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
Sets the current session and default language.- Throws:
JaloSystemException- there was a security problem while creating the session
-
finish
- Throws:
JaloSecurityException
-
getOrCreateLanguage
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
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
-