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
@IntegrationTest public class AssertFalseConstraintTest extends AbstractConstraintTest
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, validationService
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description AssertFalseConstraintTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testDefaultActiveValue1()
void
testDefaultActiveValue2()
void
testFalse1()
thest the false values - a violation must happendvoid
testFalse2()
same astestFalse2()
void
testTrue1()
create first the model with false data, then the constraint - then validatevoid
testTrue2()
LiketestTrue1()
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, unloadEngine
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
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()
-
-