public class TestedProductRule<T extends TestedProduct<WebDriverTester>> extends Object implements org.junit.rules.TestRule, TestedProduct<WebDriverTester>
@Rule public TestedProductRule product = new TestedProductRule(YourTestedProduct.class);
InjectionRules,
ProductContextRunner| Constructor and Description |
|---|
TestedProductRule(Class<T> testedProductClass) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
PageBinder |
getPageBinder() |
ProductInstance |
getProductInstance() |
T |
getTestedProduct() |
WebDriverTester |
getTester() |
<P extends Page> |
visit(Class<P> pageClass,
Object... args)
Constructs the page object, changes the browser URL to the desired page URL, then binds the object to the page.
|
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRulepublic <P extends Page> P visit(Class<P> pageClass, Object... args)
TestedProductvisit in interface TestedProduct<WebDriverTester>P - The page typepageClass - The page classargs - Arguments to pass to the page object constructor.public PageBinder getPageBinder()
getPageBinder in interface TestedProduct<WebDriverTester>public ProductInstance getProductInstance()
getProductInstance in interface TestedProduct<WebDriverTester>public WebDriverTester getTester()
getTester in interface TestedProduct<WebDriverTester>public T getTestedProduct()
Copyright © 2016 Atlassian. All rights reserved.