1 package org.junit.validator; 2 3 import java.util.List; 4 5 import org.junit.runners.model.TestClass; 6 7 /** 8 * Validates a single facet of a test class. 9 * 10 * @since 4.12 11 */ 12 public interface TestClassValidator { 13 /** 14 * Validate a single facet of a test class. 15 * 16 * @param testClass 17 * the {@link TestClass} that is validated. 18 * @return the validation errors found by the validator. 19 */ validateTestClass(TestClass testClass)20 public List<Exception> validateTestClass(TestClass testClass); 21 } 22