Class RuleMemberValidator

java.lang.Object
org.junit.internal.runners.rules.RuleMemberValidator

public class RuleMemberValidator extends Object
A RuleMemberValidator validates the rule fields/methods of a 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.