类 Suite

  • 所有已实现的接口:
    Describable, Filterable, Sortable
    直接已知子类:
    Categories, Enclosed, Parameterized

    public class Suite
    extends ParentRunner<Runner>
    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 Testsuite() 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.
    从以下版本开始:
    4.0