@IntegrationTest public class GenericConstraintsValidationTest extends AbstractConstraintTest
AbstractConstraintTest.ConstraintconstraintDao, flexibleSearchService, i18nService, modelService, typeService, validationServiceimportServicejaloSession| Constructor and Description |
|---|
GenericConstraintsValidationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testAssertFalseAndNotNull()
setting the NotNull constraint to C2LItemModel.avtive and the AssertFalse to LanguageModel.active (same attribute
descriptor)
|
void |
testAssertTrue()
testing the AssertTrue setting the constraint to the C2LItemModel.active attribute but for the LanguageModel only
|
void |
testDecimalMinMaxAndDigitsAfterDetachingConstraints()
checking validation after detaching all - should not throw any validation exception
|
void |
testDecimalMinMaxAndDigitsConstraints()
testing the constraints DecimalMin, DecimalMax and Digits
|
void |
testInhereitanceFieldForModel()
null reference constraint test on different type level attributes
|
void |
testNotNullConstraintWithOwnModelAttributes()
simple test - using own model attribute Testing NotNull constraint
|
void |
testNullConstraintWithSuperModelAttributes()
also simple test - but using attribute from supermodel Testing Null constraint
|
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 void testInhereitanceFieldForModel()
Principal.NAME
|
User.PASSWORDPASSWORDQUESTION
|
Customerpublic void testNotNullConstraintWithOwnModelAttributes()
public void testNullConstraintWithSuperModelAttributes()
public void testAssertTrue()
public void testAssertFalseAndNotNull()
public void testDecimalMinMaxAndDigitsConstraints()
public void testDecimalMinMaxAndDigitsAfterDetachingConstraints()
Copyright © 2018 SAP SE. All Rights Reserved.