Class HybrisDecimalMaxConstraintTest
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.HybrisDecimalMaxConstraintTest
- All Implemented Interfaces:
JaloSessionHolder
Testing the HybrisDecimalMax Constraint.
-
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 TypeMethodDescriptionvoidvoidvoidmust fail because value is adeltalarger than constraintvoidmust fail because value is adeltalarger than constraintvoidis ok, difference is adeltasmaller than constraintvoidis ok, difference is adeltalarger than constraintMethods 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
-
HybrisDecimalMaxConstraintTest
public HybrisDecimalMaxConstraintTest()
-
-
Method Details
-
prepareDelta
public void prepareDelta() -
testMaxConstraintGreaterExplicit
public void testMaxConstraintGreaterExplicit()must fail because value is adeltalarger than constraint -
testMaxConstraintEqual
public void testMaxConstraintEqual() -
testMaxConstraintGreaterImplicit
public void testMaxConstraintGreaterImplicit()must fail because value is adeltalarger than constraint -
testMaxConstraintLowerExplicit
public void testMaxConstraintLowerExplicit()is ok, difference is adeltasmaller than constraint -
testMaxConstraintLowerImplicit
public void testMaxConstraintLowerImplicit()is ok, difference is adeltalarger than constraint
-