Package org.junit.runners
Class Suite
java.lang.Object
org.junit.runner.Runner
org.junit.runners.Suite
- Direct Known Subclasses:
Parameterized
Using
Suite as a runner allows you to manually
build a suite containing tests from many classes. It is the JUnit 4 equivalent of the JUnit 3.8.x
static junit.framework.Test suite() method. To use it, annotate a class
with @RunWith(Suite.class) and @SuiteClasses({TestClass1.class, ...}).
When you run this class, it will run all the tests in all the suite classes.- Since:
- 4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceTheSuiteClassesannotation specifies the classes to be run when a class annotated with@RunWith(Suite.class)is run. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Suite
public Suite()
-