Class LocalizationAwareValidationServiceTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.servicelayer.ServicelayerTransactionalTest
de.hybris.platform.validation.model.constraints.jsr303.AbstractConstraintTest
de.hybris.platform.validation.services.impl.LocalizationAwareValidationServiceTest
- All Implemented Interfaces:
JaloSessionHolder
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.validation.model.constraints.jsr303.AbstractConstraintTest
AbstractConstraintTest.Constraint -
Field Summary
Fields inherited from class de.hybris.platform.validation.model.constraints.jsr303.AbstractConstraintTest
constraintDao, flexibleSearchService, i18nServiceFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.validation.model.constraints.jsr303.AbstractConstraintTest
assertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithMessageKey, assertModelSavingExceptionWithMessageKey, assertTrimmedException, calculateFractionPrecision, checkException, checkException, checkException, getDefaultMessage, resetConstraints, unloadEngineMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
LocalizationAwareValidationServiceTest
public LocalizationAwareValidationServiceTest()
-
-
Method Details
-
doBefore
public void doBefore() -
doAfter
public void doAfter() -
emptyValueShouldNotTriggerViolation
public void emptyValueShouldNotTriggerViolation() -
shouldConvertLanguageToLocaleWithCapitalizedLetters
public void shouldConvertLanguageToLocaleWithCapitalizedLetters() -
tooShortValueOnlyInEnglishShouldViolate
public void tooShortValueOnlyInEnglishShouldViolate() -
okValueOnlyInEnglishShouldNotViolate
public void okValueOnlyInEnglishShouldNotViolate() -
okValueInEnglishAndGermanShouldNotViolate
public void okValueInEnglishAndGermanShouldNotViolate() -
invalidGermanValueShouldViolate
public void invalidGermanValueShouldViolate() -
invalidValuesInEnglishAndGermansShouldViolateTwice
public void invalidValuesInEnglishAndGermansShouldViolateTwice() -
invalidValuesInEnglishAndGermansForSubtypeShouldViolateTwice
public void invalidValuesInEnglishAndGermansForSubtypeShouldViolateTwice() -
validValuesForDifferentConstraintsShouldPass
public void validValuesForDifferentConstraintsShouldPass() -
invalidValuesForDifferentConstraintsShouldViolate
public void invalidValuesForDifferentConstraintsShouldViolate() -
shouldViolateTwoConstraintsOnSameAttribute
public void shouldViolateTwoConstraintsOnSameAttribute() -
disallowCreatingLocalizedConstraintOnNonLocalizableAttribute
public void disallowCreatingLocalizedConstraintOnNonLocalizableAttribute() -
allowCreatingLocalizedConstraintOnLocalizableAttribute
public void allowCreatingLocalizedConstraintOnLocalizableAttribute() -
violationsShouldMatchConstraintsLocales
public void violationsShouldMatchConstraintsLocales() -
shouldValidateGroupConstraints
public void shouldValidateGroupConstraints() -
shouldTriggerDefaultGroupInLocalizedValidations
public void shouldTriggerDefaultGroupInLocalizedValidations() -
shouldThrowValidationErrorWhenValidatingLocalizableAttributeReturningNotString
public void shouldThrowValidationErrorWhenValidatingLocalizableAttributeReturningNotString()
-