Class AbstractHybrisNumberValidatorTest<T extends java.lang.Number,A extends java.lang.annotation.Annotation>
- java.lang.Object
-
- de.hybris.platform.validation.validators.AbstractHybrisNumberValidatorTest<T,A>
-
- Direct Known Subclasses:
HybrisDecimalMaxValidatorForBigDecimalTest
,HybrisDecimalMaxValidatorForDoubleTest
,HybrisDecimalMaxValidatorForLongTest
,HybrisDecimalMinValidatorForBigDecimalTest
,HybrisDecimalMinValidatorForDoubleTest
,HybrisDecimalMinValidatorForLongTest
public abstract class AbstractHybrisNumberValidatorTest<T extends java.lang.Number,A extends java.lang.annotation.Annotation> extends java.lang.Object
Abstract for common test for checking a validator for a big numbers and those near to 0
-
-
Constructor Summary
Constructors Constructor Description AbstractHybrisNumberValidatorTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
assertIsNotValidValue(T value)
protected void
assertIsValidValue(T value)
void
clearClassAfterTest()
protected abstract T
getBorderCaseMax()
Value has to exact the used bean definition annotation valueprotected abstract T
getBorderCaseMin()
Value has to exact the used bean definition annotation valueprotected abstract T
getValueAboveGivenMax(T borderValue)
protected abstract T
getValueAboveGivenMin(T borderValue)
protected abstract T
getValueBelowGivenMax(T borderValue)
protected abstract T
getValueBelowGivenMin(T borderValue)
protected A
prepareMaxAnnotationInstance()
protected A
prepareMinAnnotationInstance()
-
-
-
Field Detail
-
validator
protected javax.validation.ConstraintValidator<A extends java.lang.annotation.Annotation,java.lang.Number> validator
-
ctx
protected final javax.validation.ConstraintValidatorContext ctx
-
-
Method Detail
-
getBorderCaseMin
protected abstract T getBorderCaseMin()
Value has to exact the used bean definition annotation value
-
getBorderCaseMax
protected abstract T getBorderCaseMax()
Value has to exact the used bean definition annotation value
-
assertIsNotValidValue
protected void assertIsNotValidValue(T value)
-
assertIsValidValue
protected void assertIsValidValue(T value)
-
prepareMinAnnotationInstance
protected A prepareMinAnnotationInstance()
-
prepareMaxAnnotationInstance
protected A prepareMaxAnnotationInstance()
-
clearClassAfterTest
public void clearClassAfterTest() throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
-
-