public abstract class

WebTestSuiteRunner

extends Runner
java.lang.Object
   ↳ org.junit.runner.Runner
     ↳ com.atlassian.jira.functest.framework.suite.WebTestSuiteRunner

Class Overview

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.

Summary

Fields
protected final WebTestSuite suite
protected final Set<Class<?>> testClasses
protected final String testPackage
protected final Class<?> webTestSuiteClass
Public Constructors
WebTestSuiteRunner(Class<?> webTestSuiteClass)
Public Methods
Description getDescription()
void run(RunNotifier notifier)
final WebTestSuite suite()
Protected Methods
abstract Runner delegateRunner()
Override this method to create the runner that will perform actual test run.
Iterable<WebTestListener> listeners()
A list of listeners to apply for this suite
[Expand]
Inherited Methods
From class org.junit.runner.Runner
From class java.lang.Object
From interface org.junit.runner.Describable

Fields

protected final WebTestSuite suite

protected final Set<Class<?>> testClasses

protected final String testPackage

protected final Class<?> webTestSuiteClass

Public Constructors

public WebTestSuiteRunner (Class<?> webTestSuiteClass)

Throws
InitializationError

Public Methods

public Description getDescription ()

public void run (RunNotifier notifier)

public final WebTestSuite suite ()

Protected Methods

protected abstract 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

protected Iterable<WebTestListener> listeners ()

A list of listeners to apply for this suite

Returns
  • list of listeners