Class WebTestSuiteRunner

java.lang.Object
org.junit.runner.Runner
com.atlassian.jira.functest.framework.suite.WebTestSuiteRunner
All Implemented Interfaces:
org.junit.runner.Describable
Direct Known Subclasses:
EnvironmentAwareSuiteRunner, LocalSuiteRunner

public abstract class WebTestSuiteRunner extends org.junit.runner.Runner
A JUnit4 runner for JIRA web tests suite. Given a WebTestSuite implementation class it instantiates it and gathers information necessary to create a delegate runner that will run all the tests in the suite.
Since:
4.3
  • Field Details

    • PACKAGE_SEPARATOR

      public static final String PACKAGE_SEPARATOR
      See Also:
    • webTestSuiteClass

      protected final Class<?> webTestSuiteClass
    • suite

      protected final WebTestSuite suite
    • testPackage

      protected final String testPackage
    • testClasses

      protected final Set<Class<?>> testClasses
  • Constructor Details

    • WebTestSuiteRunner

      public WebTestSuiteRunner(Class<?> webTestSuiteClass) throws org.junit.runners.model.InitializationError
      Throws:
      org.junit.runners.model.InitializationError
  • Method Details

    • delegateRunner

      protected abstract org.junit.runner.Runner delegateRunner()
      Override this method to create the runner that will perform actual test run.
      Returns:
      delegate runner for the suite of web test classes
    • listeners

      protected Iterable<WebTestListener> listeners()
      A list of listeners to apply for this suite
      Returns:
      list of listeners
    • getDescription

      public org.junit.runner.Description getDescription()
      Specified by:
      getDescription in interface org.junit.runner.Describable
      Specified by:
      getDescription in class org.junit.runner.Runner
    • run

      public void run(org.junit.runner.notification.RunNotifier notifier)
      Specified by:
      run in class org.junit.runner.Runner
    • suite

      public final WebTestSuite suite()