public class ProductContextRunner extends AbstractProductContextRunner
TestedProductClass annotation that the test class
MUST be annotated with, and uses TestedProductFactory to instantiate
the product and inject context into the test instance.| Constructor and Description |
|---|
ProductContextRunner(Class<?> klass)
Constructor compatible with the underlying default JUnit4 runner.
|
| Modifier and Type | Method and Description |
|---|---|
protected TestedProduct<?> |
createProduct(Class<? extends TestedProduct<?>> testedProductClass)
Override to implement custom factory method for tested product.
|
protected TestedProduct<?> |
getProduct()
The product must support injection, such that
InjectingTestedProducts.supportsInjection(com.atlassian.pageobjects.TestedProduct)
returns true. |
getInjectionContextclassBlock, methodInvokercollectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, methodBlock, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutpublic ProductContextRunner(Class<?> klass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError - if the test class is malformed.protected TestedProduct<?> createProduct(Class<? extends TestedProduct<?>> testedProductClass)
testedProductClass - tested product classprotected final TestedProduct<?> getProduct()
AbstractProductContextRunnerInjectingTestedProducts.supportsInjection(com.atlassian.pageobjects.TestedProduct)
returns true. Otherwise this runner will fail at runtime when trying to
perform injection.getProduct in class AbstractProductContextRunnerCopyright © 2015 Atlassian. All rights reserved.