@IntegrationTest public class LocalizationAwareValidationServiceTest extends AbstractConstraintTest
AbstractConstraintTest.ConstraintconstraintDao, flexibleSearchService, i18nServiceimportServicejaloSession| Constructor and Description |
|---|
LocalizationAwareValidationServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
allowCreatingLocalizedConstraintOnLocalizableAttribute() |
void |
disallowCreatingLocalizedConstraintOnNonLocalizableAttribute() |
void |
doAfter() |
void |
doBefore() |
void |
emptyValueShouldNotTriggerViolation() |
void |
invalidGermanValueShouldViolate() |
void |
invalidValuesForDifferentConstraintsShouldViolate() |
void |
invalidValuesInEnglishAndGermansForSubtypeShouldViolateTwice() |
void |
invalidValuesInEnglishAndGermansShouldViolateTwice() |
void |
okValueInEnglishAndGermanShouldNotViolate() |
void |
okValueOnlyInEnglishShouldNotViolate() |
void |
shouldConvertLanguageToLocaleWithCapitalizedLetters() |
void |
shouldTriggerDefaultGroupInLocalizedValidations() |
void |
shouldValidateGroupConstraints() |
void |
shouldViolateTwoConstraintsOnSameAttribute() |
void |
tooShortValueOnlyInEnglishShouldViolate() |
void |
validValuesForDifferentConstraintsShouldPass() |
void |
violationsShouldMatchConstraintsLocales() |
assertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithMessageKey, assertModelSavingExceptionWithMessageKey, assertTrimmedException, calculateFractionPrecision, checkException, checkException, getDefaultMessage, resetConstraints, unloadEnginecreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic LocalizationAwareValidationServiceTest()
public void doBefore()
public void doAfter()
public void emptyValueShouldNotTriggerViolation()
public void shouldConvertLanguageToLocaleWithCapitalizedLetters()
public void tooShortValueOnlyInEnglishShouldViolate()
public void okValueOnlyInEnglishShouldNotViolate()
public void okValueInEnglishAndGermanShouldNotViolate()
public void invalidGermanValueShouldViolate()
public void invalidValuesInEnglishAndGermansShouldViolateTwice()
public void invalidValuesInEnglishAndGermansForSubtypeShouldViolateTwice()
public void validValuesForDifferentConstraintsShouldPass()
public void invalidValuesForDifferentConstraintsShouldViolate()
public void shouldViolateTwoConstraintsOnSameAttribute()
public void disallowCreatingLocalizedConstraintOnNonLocalizableAttribute()
public void allowCreatingLocalizedConstraintOnLocalizableAttribute()
public void violationsShouldMatchConstraintsLocales()
public void shouldValidateGroupConstraints()
public void shouldTriggerDefaultGroupInLocalizedValidations()
Copyright © 2018 SAP SE. All Rights Reserved.