Home | History | Annotate | Download | only in rules

Lines Matching refs:errors

15  * {@code TestClass} are written to a list of errors.
43 * for rejecting the class to a list of errors.
45 * @param errors the list of errors.
47 public void validate(TestClass target, List<Throwable> errors) {
50 validateField(each, errors);
53 private void validateField(FrameworkField field, List<Throwable> errors) {
54 optionallyValidateStatic(field, errors);
55 validatePublic(field, errors);
56 validateTestRuleOrMethodRule(field, errors);
60 List<Throwable> errors) {
62 addError(errors, field, "must be static.");
65 private void validatePublic(FrameworkField field, List<Throwable> errors) {
67 addError(errors, field, "must be public.");
71 List<Throwable> errors) {
73 addError(errors, field, "must implement MethodRule or TestRule.");
86 private void addError(List<Throwable> errors, FrameworkField field,
90 errors.add(new Exception(message));