com.atlassian.jira.pageobjects.config.junit4
Class JiraWebTestRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
              extended by com.atlassian.integrationtesting.runner.CompositeTestRunner
                  extended by com.atlassian.jira.pageobjects.config.junit4.JiraWebTestRunner
All Implemented Interfaces:
TransformableRunner<JiraWebTestRunner>, org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class JiraWebTestRunner
extends com.atlassian.integrationtesting.runner.CompositeTestRunner
implements TransformableRunner<JiraWebTestRunner>

Extension of CompositeTestRunner for JIRA.

This runner applies the following operations on the tested class instance:

Optionally a list of run listeners may provided that will be called for each test run by this runner.

NOTE: This runner is not suitable to use with the RunWith annotation. It is designed to be used by higher-level parent runner (e.g. in Suite, by means of RunnerBuilder), or extended by runners that provide JiraTestedProduct instance and implement the RunWith-compatible constructor.

Since:
4.4

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.integrationtesting.runner.CompositeTestRunner
com.atlassian.integrationtesting.runner.CompositeTestRunner.AfterTestClass, com.atlassian.integrationtesting.runner.CompositeTestRunner.AfterTestMethod, com.atlassian.integrationtesting.runner.CompositeTestRunner.BeforeTestClass, com.atlassian.integrationtesting.runner.CompositeTestRunner.BeforeTestMethod, com.atlassian.integrationtesting.runner.CompositeTestRunner.Composer
 
Constructor Summary
JiraWebTestRunner(Class<?> klass, JiraTestedProduct product)
           
JiraWebTestRunner(Class<?> klass, JiraTestedProduct product, Iterable<org.junit.runner.notification.RunListener> listeners)
           
 
Method Summary
protected  List<org.junit.runners.model.FrameworkMethod> getChildren()
           
static com.atlassian.integrationtesting.runner.CompositeTestRunner.Composer jiraComposer(JiraTestedProduct product, Iterable<org.junit.runner.notification.RunListener> listeners)
           
 JiraWebTestRunner withTransforms(List<SuiteTransform> transforms)
          An instance of this runner applying given list of transforms to itself.
 
Methods inherited from class com.atlassian.integrationtesting.runner.CompositeTestRunner
compose, run, runChild, withAfterClasses, withAfters, withBeforeClasses, withBefores
 
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateInstanceMethods, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withPotentialTimeout
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, filter, getDescription, getName, getTestClass, setScheduler, sort, validatePublicVoidNoArgMethods
 
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
 

Constructor Detail

JiraWebTestRunner

public JiraWebTestRunner(Class<?> klass,
                         JiraTestedProduct product,
                         Iterable<org.junit.runner.notification.RunListener> listeners)
                  throws org.junit.runners.model.InitializationError
Throws:
org.junit.runners.model.InitializationError

JiraWebTestRunner

public JiraWebTestRunner(Class<?> klass,
                         JiraTestedProduct product)
                  throws org.junit.runners.model.InitializationError
Throws:
org.junit.runners.model.InitializationError
Method Detail

jiraComposer

public static com.atlassian.integrationtesting.runner.CompositeTestRunner.Composer jiraComposer(JiraTestedProduct product,
                                                                                                Iterable<org.junit.runner.notification.RunListener> listeners)

withTransforms

public JiraWebTestRunner withTransforms(List<SuiteTransform> transforms)
                                 throws org.junit.runners.model.InitializationError
Description copied from interface: TransformableRunner
An instance of this runner applying given list of transforms to itself.

Specified by:
withTransforms in interface TransformableRunner<JiraWebTestRunner>
Parameters:
transforms - transforms to apply
Returns:
runner instance with transforms
Throws:
org.junit.runners.model.InitializationError - JUnit4 error

getChildren

protected List<org.junit.runners.model.FrameworkMethod> getChildren()
Overrides:
getChildren in class org.junit.runners.BlockJUnit4ClassRunner


Copyright © 2002-2012 Atlassian. All Rights Reserved.