com.atlassian.confluence.qunit.pageobjects
Class DelegatingQUnitTestProduct

java.lang.Object
  extended by 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


Constructor Summary
DelegatingQUnitTestProduct(ConfluenceTestedProduct product, java.lang.Class<? extends QUnitTestPage> testPage)
          Create a test product that delegates to another.
 
Method Summary
 void afterTest()
          Navigates to a blank page and cleans up any dialogs attempting to block that navigation.
 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
 

Constructor Detail

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
Method Detail

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

afterTest

public void afterTest()
Navigates to a blank page and cleans up any dialogs attempting to block that navigation. Note that code.google.com/p/chromedriver/issues/detail?id=161 makes us need to catch an exception.

Specified by:
afterTest 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-2014 Atlassian. All Rights Reserved.