@IntegrationTest public class DynamicConstraintTest extends AbstractConstraintTest
DynamicConstraintModel.AbstractConstraintTest.ConstraintconstraintDao, flexibleSearchService, i18nService, modelService, typeService, validationServiceimportServicejaloSession| Constructor and Description |
|---|
DynamicConstraintTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testCheckBSHRuntimeException()
runtime exception are not affecting validation flag
|
void |
testCheckInvalidBSH()
inappropriate BSH script syntax
|
void |
testCreateDynamicModelConstraint()
simple example of valid bsh script assigned for a
ProductModel class |
void |
testCreateDynamicNoExpressionConstraint()
not allowed creation of the dynamic constraint without
DynamicConstraintModel.EXPRESSION |
void |
testCreateDynamicNoTargetConstraint()
not allowed creation of the constraint for a model without
AbstractConstraintModel.TARGET or
AbstractConstraintModel.TYPE |
void |
testCreateDynamicPojoConstraint()
simple example of valid bsh script assigned for a pojo class
|
void |
testCreateDynamicWithTargetConstraint()
not allowed creation of the constraint for a model via
AbstractConstraintModel.TARGET |
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 testCreateDynamicPojoConstraint()
out.print("some data");public void testCreateDynamicModelConstraint()
ProductModel class
out.print("some data");public void testCreateDynamicWithTargetConstraint()
AbstractConstraintModel.TARGETpublic void testCreateDynamicNoTargetConstraint()
AbstractConstraintModel.TARGET or
AbstractConstraintModel.TYPEpublic void testCreateDynamicNoExpressionConstraint()
DynamicConstraintModel.EXPRESSIONpublic void testCheckInvalidBSH()
throws java.lang.Exception
java.lang.Exceptionpublic void testCheckBSHRuntimeException()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.