Class DynamicConstraintTest
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.model.constraints.DynamicConstraintTest
- All Implemented Interfaces:
JaloSessionHolder
Test for presenting set of required attributes for storing
DynamicConstraintModel.-
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, modelService, typeService, validationServiceFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidruntime exception are not affecting validation flagvoidinappropriate BSH script syntaxvoidsimple example of valid bsh script assigned for aProductModelclassvoidnot allowed creation of the dynamic constraint withoutDynamicConstraintModel.EXPRESSIONvoidnot allowed creation of the constraint for a model withoutAbstractConstraintModel.TARGETorAbstractConstraintModel.TYPEvoidsimple example of valid bsh script assigned for a pojo classvoidnot allowed creation of the constraint for a model viaAbstractConstraintModel.TARGETMethods 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
-
DynamicConstraintTest
public DynamicConstraintTest()
-
-
Method Details
-
testCreateDynamicPojoConstraint
public void testCreateDynamicPojoConstraint()simple example of valid bsh script assigned for a pojo classout.print("some data"); -
testCreateDynamicModelConstraint
public void testCreateDynamicModelConstraint()simple example of valid bsh script assigned for aProductModelclassout.print("some data"); -
testCreateDynamicWithTargetConstraint
public void testCreateDynamicWithTargetConstraint()not allowed creation of the constraint for a model viaAbstractConstraintModel.TARGET -
testCreateDynamicNoTargetConstraint
public void testCreateDynamicNoTargetConstraint()not allowed creation of the constraint for a model withoutAbstractConstraintModel.TARGETorAbstractConstraintModel.TYPE -
testCreateDynamicNoExpressionConstraint
public void testCreateDynamicNoExpressionConstraint()not allowed creation of the dynamic constraint withoutDynamicConstraintModel.EXPRESSION -
testCheckInvalidBSH
inappropriate BSH script syntax- Throws:
Exception
-
testCheckBSHRuntimeException
runtime exception are not affecting validation flag- Throws:
Exception
-