1b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabotpackage org.junit.runners;
2b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot
3b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabotimport org.junit.internal.runners.SuiteMethod;
4b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot
5b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot/** Runner for use with JUnit 3.8.x-style AllTests classes
6b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot * (those that only implement a static <code>suite()</code>
7b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot * method). For example:
8b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot * <pre>
9b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot * &#064;RunWith(AllTests.class)
10b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot * public class ProductTests {
11b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot *    public static junit.framework.Test suite() {
12b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot *       ...
13b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot *    }
14b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot * }
15b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot * </pre>
16b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot */
17b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabotpublic class AllTests extends SuiteMethod {
18b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	/**
19b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	 * Only called reflectively. Do not use programmatically.
20b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	 */
21b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	public AllTests(Class<?> klass) throws Throwable {
22b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot		super(klass);
23b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	}
24b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot}
25