com.atlassian.confluence.qunit.pageobjects
Class DelegatingQUnitTestProduct
java.lang.Object
com.atlassian.confluence.qunit.pageobjects.DelegatingQUnitTestProduct
- All Implemented Interfaces:
- QUnitTestProduct, com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
- Direct Known Subclasses:
- EditorTestedProduct, QuickEditorTestedProduct, QUnitAUITestedProduct
public class DelegatingQUnitTestProduct
- extends java.lang.Object
- implements QUnitTestProduct
Method Summary |
com.atlassian.pageobjects.PageBinder |
getPageBinder()
|
com.atlassian.pageobjects.ProductInstance |
getProductInstance()
|
com.atlassian.webdriver.pageobjects.WebDriverTester |
getTester()
|
void |
login(User user)
|
void |
logout()
|
QUnitTestPage |
runTest(java.util.Map<java.lang.String,java.lang.Object> args)
|
<P extends com.atlassian.pageobjects.Page>
P |
|
visit(java.lang.Class<P> pClass,
java.lang.Object... objects)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingQUnitTestProduct
public DelegatingQUnitTestProduct(ConfluenceTestedProduct product,
java.lang.Class<? extends QUnitTestPage> testPage)
- Create a test product that delegates to another.
- Parameters:
product
- testPage
- the page to navigate to for the tests
login
public void login(User user)
- Specified by:
login
in interface QUnitTestProduct
logout
public void logout()
- Specified by:
logout
in interface QUnitTestProduct
runTest
public QUnitTestPage runTest(java.util.Map<java.lang.String,java.lang.Object> args)
- Specified by:
runTest
in interface QUnitTestProduct
visit
public <P extends com.atlassian.pageobjects.Page> P visit(java.lang.Class<P> pClass,
java.lang.Object... objects)
- Specified by:
visit
in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
getPageBinder
public com.atlassian.pageobjects.PageBinder getPageBinder()
- Specified by:
getPageBinder
in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
getProductInstance
public com.atlassian.pageobjects.ProductInstance getProductInstance()
- Specified by:
getProductInstance
in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
getTester
public com.atlassian.webdriver.pageobjects.WebDriverTester getTester()
- Specified by:
getTester
in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
Copyright © 2003-2013 Atlassian. All Rights Reserved.