Class AbstractHybrisNumberValidatorTest<T extends Number,A extends 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 Number,A extends Annotation>
extends Object
Abstract for common test for checking a validator for a big numbers and those near to 0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertIsNotValidValue(T value) protected voidassertIsValidValue(T value) voidprotected abstract TValue has to exact the used bean definition annotation valueprotected abstract TValue 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 Aprotected A
-
Field Details
-
validator
-
ctx
protected final javax.validation.ConstraintValidatorContext ctx
-
-
Constructor Details
-
AbstractHybrisNumberValidatorTest
public AbstractHybrisNumberValidatorTest()
-
-
Method Details
-
getBorderCaseMin
Value has to exact the used bean definition annotation value -
getBorderCaseMax
Value has to exact the used bean definition annotation value -
getValueAboveGivenMin
-
getValueBelowGivenMin
-
getValueAboveGivenMax
-
getValueBelowGivenMax
-
assertIsNotValidValue
-
assertIsValidValue
-
prepareMinAnnotationInstance
-
prepareMaxAnnotationInstance
-
clearClassAfterTest
- Throws:
ClassNotFoundException
-