java.lang.Object
org.jboss.arquillian.container.test.spi.util.TestRunners

public final class TestRunners extends Object
TestRunners

Helper factory for loading TestRunners in container.

Version:
$Revision: $
Author:
Aslak Knutsen
  • Method Details

    • getTestRunner

      public static TestRunner getTestRunner()
      Dynamically loads an instance of a test runner.
      Returns:
      A Initialized TestRunner
      Throws:
      IllegalStateException - if multiple TestRunners found in classpath.
    • getTestRunner

      public static TestRunner getTestRunner(ClassLoader classLoader)
      Dynamically loads an instance of a test runner.
      Returns:
      A Initialized TestRunner
      Throws:
      IllegalStateException - if multiple TestRunners found in classpath.