Class I18NServiceTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTransactionalBaseTest
-
- de.hybris.platform.servicelayer.i18n.I18NServiceTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class I18NServiceTest extends ServicelayerTransactionalBaseTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description I18NServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddemonstrateFormatters()Not really Test, just a demonstration how java I18N works.CommonI18NServicegetCommonI18NService()I18NServicegetI18nService()ModelServicegetModelService()voidsetUp()voidtestCurrentLanguageMethods()voidtestMiscUseCases()voidtestSystemCurrencyFunctionality()voidtestSystemCurrentLocaleFunctionality()voidtestUpdateJaloSession()voidtestUpdateLanguageAndCountry()Updates sessionLanguageModeland/or sessionCountryModelvarious times.
Tests whether sessionLocaleis compatible.voidtestUpdateLocale()Updates the session Locale various time.
Tests whether sessionsLanguageModelandCountryModelare compatible.-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp()
-
testSystemCurrentLocaleFunctionality
public void testSystemCurrentLocaleFunctionality()
-
testSystemCurrencyFunctionality
public void testSystemCurrencyFunctionality()
-
testCurrentLanguageMethods
public void testCurrentLanguageMethods()
-
testUpdateLocale
public void testUpdateLocale()
Updates the session Locale various time.
Tests whether sessionsLanguageModelandCountryModelare compatible.
-
testUpdateLanguageAndCountry
public void testUpdateLanguageAndCountry()
Updates sessionLanguageModeland/or sessionCountryModelvarious times.
Tests whether sessionLocaleis compatible.
-
testUpdateJaloSession
public void testUpdateJaloSession()
-
testMiscUseCases
public void testMiscUseCases()
-
demonstrateFormatters
public void demonstrateFormatters()
Not really Test, just a demonstration how java I18N works.
-
getI18nService
public I18NService getI18nService()
- Returns:
- the i18nService
-
getModelService
public ModelService getModelService()
- Returns:
- the modelService
-
getCommonI18NService
public CommonI18NService getCommonI18NService()
- Returns:
- the commonI18NService
-
-