@UnitTest public class RegExpValidatorTest extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected RegExp |
regExpAnnotation |
protected RegExpValidator |
regExpValidator |
protected ConstraintValidatorContext |
validatorContext |
| Constructor and Description |
|---|
RegExpValidatorTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
void |
testIsValid() |
void |
testIsValidForBlankRegexp() |
void |
testIsValidForBlankRegexpWhenNotEmptyIsTrue() |
void |
testIsValidForEmptyRegexp() |
void |
testIsValidForEmptyRegexpWhenNotEmptyIsTrue() |
void |
testIsValidForIncorrectRegexp() |
void |
testIsValidForNull() |
void |
testIsValidForNullWhenNotEmptyIsTrue() |
protected RegExpValidator regExpValidator
protected ConstraintValidatorContext validatorContext
protected RegExp regExpAnnotation
public void init()
public void testIsValid()
public void testIsValidForIncorrectRegexp()
public void testIsValidForNull()
public void testIsValidForEmptyRegexp()
public void testIsValidForBlankRegexp()
public void testIsValidForNullWhenNotEmptyIsTrue()
public void testIsValidForEmptyRegexpWhenNotEmptyIsTrue()
public void testIsValidForBlankRegexpWhenNotEmptyIsTrue()
Copyright © 2018 SAP SE. All Rights Reserved.