Class JiraWebTestRunner

java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
com.atlassian.webdriver.testing.runner.AbstractInjectingRunner
com.atlassian.webdriver.testing.runner.AbstractProductContextRunner
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.Orderable, org.junit.runner.manipulation.Sortable
Direct Known Subclasses:
SingleJiraWebTestRunner

public class JiraWebTestRunner extends com.atlassian.webdriver.testing.runner.AbstractProductContextRunner implements TransformableRunner<JiraWebTestRunner>
Base runner for JIRA web tests.
Since:
4.4
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    JiraWebTestRunner(Class<?> klass, JiraTestedProduct product, Iterable<org.junit.runner.notification.RunListener> listeners)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.junit.runners.model.Statement
    classBlock(org.junit.runner.notification.RunNotifier notifier)
     
    protected List<org.junit.runners.model.FrameworkMethod>
     
    protected com.atlassian.pageobjects.TestedProduct<?>
     
    An instance of this runner applying given list of transforms to itself.

    Methods inherited from class com.atlassian.webdriver.testing.runner.AbstractProductContextRunner

    getInjectionContext

    Methods inherited from class com.atlassian.webdriver.testing.runner.AbstractInjectingRunner

    methodInvoker

    Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner

    collectInitializationErrors, computeTestMethods, createTest, createTest, describeChild, getTestRules, isIgnored, methodBlock, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout

    Methods inherited from class org.junit.runners.ParentRunner

    childrenInvoker, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation

    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 Details

    • 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 Details

    • getProduct

      protected com.atlassian.pageobjects.TestedProduct<?> getProduct()
      Specified by:
      getProduct in class com.atlassian.webdriver.testing.runner.AbstractProductContextRunner
    • 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
    • classBlock

      protected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
      Overrides:
      classBlock in class com.atlassian.webdriver.testing.runner.AbstractInjectingRunner