|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.webdriver.testing.runner.ProductContextRunner
public class ProductContextRunner
'Default' product context runner that reads the tested product class from the
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 Summary | |
|---|---|
ProductContextRunner(Class<?> klass)
Constructor compatible with the underlying default JUnit4 runner. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.atlassian.webdriver.testing.runner.AbstractProductContextRunner |
|---|
getInjectionContext |
| Methods inherited from class com.atlassian.webdriver.testing.runner.AbstractInjectingRunner |
|---|
classBlock, methodInvoker |
| 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 |
|---|
public ProductContextRunner(Class<?> klass)
throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError - if the test class is malformed.| Method Detail |
|---|
protected TestedProduct<?> createProduct(Class<? extends TestedProduct<?>> testedProductClass)
testedProductClass - tested product class
protected 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 AbstractProductContextRunner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||