com.atlassian.webdriver.testing.runner
Class AbstractInjectingRunner

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.webdriver.testing.runner.AbstractInjectingRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
Direct Known Subclasses:
AbstractProductContextRunner

public abstract class AbstractInjectingRunner
extends org.junit.runners.BlockJUnit4ClassRunner

A JUnit runner that injects all the page bindery things into your tests.

Since:
2.1.

Constructor Summary
AbstractInjectingRunner(Class<?> klass)
          Constructor compatible with the underlying default JUnit4 runner.
 
Method Summary
protected  org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
           
protected abstract  InjectionContext getInjectionContext()
           
protected  org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method, Object test)
           
 
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, 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, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
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

AbstractInjectingRunner

public AbstractInjectingRunner(Class<?> klass)
                        throws org.junit.runners.model.InitializationError
Constructor compatible with the underlying default JUnit4 runner.

Throws:
org.junit.runners.model.InitializationError - if the test class is malformed.
Method Detail

classBlock

protected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
Overrides:
classBlock in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>

methodInvoker

protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method,
                                                          Object test)
Overrides:
methodInvoker in class org.junit.runners.BlockJUnit4ClassRunner

getInjectionContext

protected abstract InjectionContext getInjectionContext()


Copyright © 2014 Atlassian. All rights reserved.