Class RegExpValidatorTest
- java.lang.Object
-
- de.hybris.platform.validation.validators.RegExpValidatorTest
-
@UnitTest public class RegExpValidatorTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected RegExpregExpAnnotationprotected RegExpValidatorregExpValidatorprotected javax.validation.ConstraintValidatorContextvalidatorContext
-
Constructor Summary
Constructors Constructor Description RegExpValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()voidtestIsValid()voidtestIsValidForBlankRegexp()voidtestIsValidForBlankRegexpWhenNotEmptyIsTrue()voidtestIsValidForEmptyRegexp()voidtestIsValidForEmptyRegexpWhenNotEmptyIsTrue()voidtestIsValidForIncorrectRegexp()voidtestIsValidForNull()voidtestIsValidForNullWhenNotEmptyIsTrue()
-
-
-
Field Detail
-
regExpValidator
protected RegExpValidator regExpValidator
-
validatorContext
@Mock protected javax.validation.ConstraintValidatorContext validatorContext
-
regExpAnnotation
@Mock protected RegExp regExpAnnotation
-
-
Method Detail
-
init
public void init()
-
testIsValid
public void testIsValid()
-
testIsValidForIncorrectRegexp
public void testIsValidForIncorrectRegexp()
-
testIsValidForNull
public void testIsValidForNull()
-
testIsValidForEmptyRegexp
public void testIsValidForEmptyRegexp()
-
testIsValidForBlankRegexp
public void testIsValidForBlankRegexp()
-
testIsValidForNullWhenNotEmptyIsTrue
public void testIsValidForNullWhenNotEmptyIsTrue()
-
testIsValidForEmptyRegexpWhenNotEmptyIsTrue
public void testIsValidForEmptyRegexpWhenNotEmptyIsTrue()
-
testIsValidForBlankRegexpWhenNotEmptyIsTrue
public void testIsValidForBlankRegexpWhenNotEmptyIsTrue()
-
-