public abstract class AbstractProductContextRunner extends AbstractInjectingRunner
InjectionContext
for this to work.| Constructor and Description |
|---|
AbstractProductContextRunner(Class<?> klass)
Constructor compatible with the underlying default JUnit4 runner.
|
| Modifier and Type | Method and Description |
|---|---|
protected InjectionContext |
getInjectionContext() |
protected abstract TestedProduct<?> |
getProduct()
The product must support injection, such that
InjectingTestedProducts.supportsInjection(com.atlassian.pageobjects.TestedProduct)
returns true. |
classBlock, methodInvokercollectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, methodBlock, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutpublic AbstractProductContextRunner(Class<?> klass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError - if the test class is malformed.protected final InjectionContext getInjectionContext()
getInjectionContext in class AbstractInjectingRunnerprotected abstract TestedProduct<?> getProduct()
InjectingTestedProducts.supportsInjection(com.atlassian.pageobjects.TestedProduct)
returns true. Otherwise this runner will fail at runtime when trying to
perform injection.Copyright © 2015 Atlassian. All rights reserved.