public enum RuleFieldValidator extends java.lang.Enum<RuleFieldValidator>
TestClass
. All reasons for rejecting the
TestClass
are written to a list of errors.
There are two slightly different validators. The CLASS_RULE_VALIDATOR
validates fields with a ClassRule
annotation and the
RULE_VALIDATOR
validates fields with a Rule
annotation.Enum Constant and Description |
---|
CLASS_RULE_VALIDATOR
Validates fields with a
ClassRule annotation. |
RULE_VALIDATOR
Validates fields with a
Rule annotation. |
Modifier and Type | Method and Description |
---|---|
void |
validate(TestClass target,
java.util.List<java.lang.Throwable> errors)
Validate the
TestClass and adds reasons
for rejecting the class to a list of errors. |
static RuleFieldValidator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RuleFieldValidator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RuleFieldValidator CLASS_RULE_VALIDATOR
ClassRule
annotation.public static final RuleFieldValidator RULE_VALIDATOR
Rule
annotation.public static RuleFieldValidator[] values()
for (RuleFieldValidator c : RuleFieldValidator.values()) System.out.println(c);
public static RuleFieldValidator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null