Class HybrisDecimalMaxValidatorForDoubleTest
- java.lang.Object
-
- de.hybris.platform.validation.validators.AbstractHybrisNumberValidatorTest<java.lang.Double,HybrisDecimalMax>
-
- de.hybris.platform.validation.validators.HybrisDecimalMaxValidatorForDoubleTest
-
@UnitTest public class HybrisDecimalMaxValidatorForDoubleTest extends AbstractHybrisNumberValidatorTest<java.lang.Double,HybrisDecimalMax>
Note precision for upper limits is highly decreased due to problems with rounding forDoublecomparison
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.validation.validators.AbstractHybrisNumberValidatorTest
ctx, validator
-
-
Constructor Summary
Constructors Constructor Description HybrisDecimalMaxValidatorForDoubleTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.DoublegetBorderCaseMax()Value has to exact the used bean definition annotation valueprotected java.lang.DoublegetBorderCaseMin()Value has to exact the used bean definition annotation valueprotected java.lang.DoublegetValueAboveGivenMax(java.lang.Double borderValueMax)protected java.lang.DoublegetValueAboveGivenMin(java.lang.Double borderValueMax)protected java.lang.DoublegetValueBelowGivenMax(java.lang.Double borderValueMax)protected java.lang.DoublegetValueBelowGivenMin(java.lang.Double borderValueMax)voidinit()voidtestCheckLowerBorderCaseEqual()voidtestCheckLowerBorderCaseGreater()voidtestCheckLowerBorderCaseLower()voidtestCheckUpperBorderCaseEqual()voidtestCheckUpperBorderCaseGreater()voidtestCheckUpperBorderCaseLower()-
Methods inherited from class de.hybris.platform.validation.validators.AbstractHybrisNumberValidatorTest
assertIsNotValidValue, assertIsValidValue, clearClassAfterTest, prepareMaxAnnotationInstance, prepareMinAnnotationInstance
-
-
-
-
Method Detail
-
init
public void init()
-
testCheckLowerBorderCaseGreater
public void testCheckLowerBorderCaseGreater()
-
testCheckLowerBorderCaseLower
public void testCheckLowerBorderCaseLower()
-
testCheckLowerBorderCaseEqual
public void testCheckLowerBorderCaseEqual()
-
getValueAboveGivenMin
protected java.lang.Double getValueAboveGivenMin(java.lang.Double borderValueMax)
- Specified by:
getValueAboveGivenMinin classAbstractHybrisNumberValidatorTest<java.lang.Double,HybrisDecimalMax>
-
getValueBelowGivenMin
protected java.lang.Double getValueBelowGivenMin(java.lang.Double borderValueMax)
- Specified by:
getValueBelowGivenMinin classAbstractHybrisNumberValidatorTest<java.lang.Double,HybrisDecimalMax>
-
getBorderCaseMin
protected java.lang.Double getBorderCaseMin()
Description copied from class:AbstractHybrisNumberValidatorTestValue has to exact the used bean definition annotation value- Specified by:
getBorderCaseMinin classAbstractHybrisNumberValidatorTest<java.lang.Double,HybrisDecimalMax>
-
testCheckUpperBorderCaseGreater
public void testCheckUpperBorderCaseGreater()
-
testCheckUpperBorderCaseLower
public void testCheckUpperBorderCaseLower()
-
testCheckUpperBorderCaseEqual
public void testCheckUpperBorderCaseEqual()
-
getValueAboveGivenMax
protected java.lang.Double getValueAboveGivenMax(java.lang.Double borderValueMax)
- Specified by:
getValueAboveGivenMaxin classAbstractHybrisNumberValidatorTest<java.lang.Double,HybrisDecimalMax>
-
getValueBelowGivenMax
protected java.lang.Double getValueBelowGivenMax(java.lang.Double borderValueMax)
- Specified by:
getValueBelowGivenMaxin classAbstractHybrisNumberValidatorTest<java.lang.Double,HybrisDecimalMax>
-
getBorderCaseMax
protected java.lang.Double getBorderCaseMax()
Description copied from class:AbstractHybrisNumberValidatorTestValue has to exact the used bean definition annotation value- Specified by:
getBorderCaseMaxin classAbstractHybrisNumberValidatorTest<java.lang.Double,HybrisDecimalMax>
-
-