Home | History | Annotate | Download | only in runners

Lines Matching refs:errors

97 	protected void collectInitializationErrors(List<Throwable> errors) {
98 super.collectInitializationErrors(errors);
100 validateNoNonStaticInnerClass(errors);
101 validateConstructor(errors);
102 validateInstanceMethods(errors);
103 validateFields(errors);
106 protected void validateNoNonStaticInnerClass(List<Throwable> errors) {
110 errors.add(new Exception(gripe));
115 * Adds to {@code errors} if the test class has more than one constructor,
119 protected void validateConstructor(List<Throwable> errors) {
120 validateOnlyOneConstructor(errors);
121 validateZeroArgConstructor(errors);
125 * Adds to {@code errors} if the test class has more than one constructor
128 protected void validateOnlyOneConstructor(List<Throwable> errors) {
131 errors.add(new Exception(gripe));
136 * Adds to {@code errors} if the test class's single constructor takes
139 protected void validateZeroArgConstructor(List<Throwable> errors) {
144 errors.add(new Exception(gripe));
153 * Adds to {@code errors} for each method annotated with {@code @Test},
160 protected void validateInstanceMethods(List<Throwable> errors) {
161 validatePublicVoidNoArgMethods(After.class, false, errors);
162 validatePublicVoidNoArgMethods(Before.class, false, errors);
163 validateTestMethods(errors);
166 errors.add(new Exception("No runnable methods"));
169 private void validateFields(List<Throwable> errors) {
170 RULE_VALIDATOR.validate(getTestClass(), errors);
174 * Adds to {@code errors} for each method annotated with {@code @Test}that
177 protected void validateTestMethods(List<Throwable> errors) {
178 validatePublicVoidNoArgMethods(Test.class, false, errors);