Lines Matching refs:errors
105 * Adds to {@code errors} a throwable for each problem noted with the test class (available from {@link #getTestClass()}).
110 protected void collectInitializationErrors(List<Throwable> errors) {
111 validatePublicVoidNoArgMethods(BeforeClass.class, true, errors);
112 validatePublicVoidNoArgMethods(AfterClass.class, true, errors);
113 validateClassRules(errors);
117 * Adds to {@code errors} if any method in this class is annotated with
127 boolean isStatic, List<Throwable> errors) {
131 eachTestMethod.validatePublicVoidNoArg(isStatic, errors);
134 private void validateClassRules(List<Throwable> errors) {
135 CLASS_RULE_VALIDATOR.validate(getTestClass(), errors);
343 List<Throwable> errors= new ArrayList<Throwable>();
344 collectInitializationErrors(errors);
345 if (!errors.isEmpty())
346 throw new InitializationError(errors);