Class AssertFalseConstraintTest
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.jsr303.AssertFalseConstraintTest
- All Implemented Interfaces:
JaloSessionHolder
Testing the AssertFalseConstraint.
-
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 TypeMethodDescriptionvoidvoidvoidthest the false values - a violation must happendvoidsame astestFalse2()voidcreate first the model with false data, then the constraint - then validatevoidLiketestTrue1()but the constraint is created first.Methods 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
-
AssertFalseConstraintTest
public AssertFalseConstraintTest()
-
-
Method Details
-
testTrue1
public void testTrue1()create first the model with false data, then the constraint - then validate -
testTrue2
public void testTrue2()LiketestTrue1()but the constraint is created first. -
testFalse1
public void testFalse1()thest the false values - a violation must happend -
testFalse2
public void testFalse2()same astestFalse2() -
testDefaultActiveValue1
public void testDefaultActiveValue1() -
testDefaultActiveValue2
public void testDefaultActiveValue2()
-