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.ObjectAbstract 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 voidassertIsNotValidValue(T value)protected voidassertIsValidValue(T value)voidclearClassAfterTest()protected abstract TgetBorderCaseMax()Value has to exact the used bean definition annotation valueprotected abstract TgetBorderCaseMin()Value has to exact the used bean definition annotation valueprotected abstract TgetValueAboveGivenMax(T borderValue)protected abstract TgetValueAboveGivenMin(T borderValue)protected abstract TgetValueBelowGivenMax(T borderValue)protected abstract TgetValueBelowGivenMin(T borderValue)protected AprepareMaxAnnotationInstance()protected AprepareMinAnnotationInstance()
-
-
-
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
-
-