com.atlassian.jira.pageobjects.config.junit4
Class JiraWebTestRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
com.atlassian.integrationtesting.runner.CompositeTestRunner
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:
- inject static and instance components of the page objects library
- set up JIRA if necessary, as per
Setup
and
NoSetup
annotations
- disable web sudo
- restore data as per
RestoreOnce
and
Restore
annotations
- enable web sudo as per
EnableWebSudo
annotation
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 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 |
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 |
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
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.