public class RuleMemberValidator extends Object
TestClass
. All reasons for rejecting the
TestClass
are written to a list of errors.
There are four slightly different validators. The CLASS_RULE_VALIDATOR
validates fields with a ClassRule
annotation and the
RULE_VALIDATOR
validates fields with a Rule
annotation.
The CLASS_RULE_METHOD_VALIDATOR
validates methods with a ClassRule
annotation and the
RULE_METHOD_VALIDATOR
validates methods with a Rule
annotation.
Modifier and Type | Field and Description |
---|---|
static RuleMemberValidator |
CLASS_RULE_METHOD_VALIDATOR
Validates methods with a
ClassRule annotation. |
static RuleMemberValidator |
CLASS_RULE_VALIDATOR
Validates fields with a
ClassRule annotation. |
static RuleMemberValidator |
RULE_METHOD_VALIDATOR
Validates methods with a
Rule annotation. |
static RuleMemberValidator |
RULE_VALIDATOR
Validates fields with a
Rule annotation. |
Modifier and Type | Method and Description |
---|---|
void |
validate(TestClass target,
List<Throwable> errors)
Validate the
TestClass and adds reasons
for rejecting the class to a list of errors. |
public static final RuleMemberValidator CLASS_RULE_VALIDATOR
ClassRule
annotation.public static final RuleMemberValidator RULE_VALIDATOR
Rule
annotation.public static final RuleMemberValidator CLASS_RULE_METHOD_VALIDATOR
ClassRule
annotation.public static final RuleMemberValidator RULE_METHOD_VALIDATOR
Rule
annotation.Copyright © 2002–2016 JUnit. All rights reserved.