com.atlassian.jira.functest.framework.suite
Class WebTestSuiteRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by com.atlassian.jira.functest.framework.suite.WebTestSuiteRunner
All Implemented Interfaces:
org.junit.runner.Describable

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 Summary
protected  WebTestSuite suite
           
protected  Set<Class<?>> testClasses
           
protected  String testPackage
           
protected  Class<?> webTestSuiteClass
           
 
Constructor Summary
WebTestSuiteRunner(Class<?> webTestSuiteClass)
           
 
Method Summary
protected abstract  org.junit.runner.Runner delegateRunner()
          Override this method to create the runner that will perform actual test run.
 org.junit.runner.Description getDescription()
           
protected  Iterable<WebTestListener> listeners()
          A list of listeners to apply for this suite
 void run(org.junit.runner.notification.RunNotifier notifier)
           
 WebTestSuite suite()
           
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webTestSuiteClass

protected final Class<?> webTestSuiteClass

suite

protected final WebTestSuite suite

testPackage

protected final String testPackage

testClasses

protected final Set<Class<?>> testClasses
Constructor Detail

WebTestSuiteRunner

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

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()


Copyright © 2002-2012 Atlassian. All Rights Reserved.