Class JUnit

java.lang.Object
org.junit.start.JUnit

@API(status=EXPERIMENTAL, since="6.1") public final class JUnit extends Object
This class provides simple helpers to discover and execute tests.
  • Method Details

    • run

      public static void run()
      Run all tests defined in the caller class.
    • run

      public static void run(Class<?> testClass)
      Run all tests defined in the given test class.
      Parameters:
      testClass - the class to discover and execute tests in
    • run

      public static void run(Module testModule)
      Run all tests defined in the given module.
      Parameters:
      testModule - the module to discover and execute tests in