Lines Matching defs:Suite
18 * Using <code>Suite</code> as a runner allows you to manually
19 * build a suite containing tests from many classes. It is the JUnit 4 equivalent of the JUnit 3.8.x
20 * static {@link junit.framework.Test} <code>suite()</code> method. To use it, annotate a class
21 * with <code>@RunWith(Suite.class)</code> and <code>@SuiteClasses({TestClass1.class, ...})</code>.
22 * When you run this class, it will run all the tests in all the suite classes.
24 public class Suite extends ParentRunner<Runner> {
26 * Returns an empty suite.
30 return new Suite((Class<?>)null, new Class<?>[0]);
38 * annotated with <code>@RunWith(Suite.class)</code> is run.
60 * Called reflectively on classes annotated with <code>@RunWith(Suite.class)</code>
63 * @param builder builds runners for classes in the suite
66 public Suite(Class<?> klass, RunnerBuilder builder) throws InitializationError {
74 * @param builder builds runners for classes in the suite
75 * @param classes the classes in the suite
78 public Suite(RunnerBuilder builder, Class<?>[] classes) throws InitializationError {
84 * @param klass the root of the suite
85 * @param suiteClasses the classes in the suite
88 protected Suite(Class<?> klass, Class<?>[] suiteClasses) throws InitializationError {
93 * Called by this class and subclasses once the classes making up the suite have been determined
95 * @param builder builds runners for classes in the suite
96 * @param klass the root of the suite
97 * @param suiteClasses the classes in the suite
100 protected Suite(RunnerBuilder builder, Class<?> klass, Class<?>[] suiteClasses) throws InitializationError {
105 * Called by this class and subclasses once the runners making up the suite have been determined
107 * @param klass root of the suite
108 * @param runners for each class in the suite, a {@link Runner}
111 protected Suite(Class<?> klass, List<Runner> runners) throws InitializationError {