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
@IntegrationTest public class LocalizationAwareValidationServiceTest extends AbstractConstraintTest
-
-
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, i18nService
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description LocalizationAwareValidationServiceTest()
-
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, unloadEngine
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
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()
-
-