public class Enclosed extends Suite
\@RunWith(Enclosed.class)
public class ListTests {
...useful shared stuff...
public static class OneKindOfListTest {...}
public static class AnotherKind {...}
}
For a real example, @see org.junit.tests.manipulation.SortableTest.Suite.SuiteClasses| Constructor and Description |
|---|
Enclosed(Class<?> klass,
RunnerBuilder builder)
Only called reflectively.
|
describeChild, emptySuite, getChildren, runChildchildrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClassespublic Enclosed(Class<?> klass, RunnerBuilder builder) throws Throwable
Throwable