com.atlassian.jira.functest.framework.assertions
Class DashboardAssertionsImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.AbstractNavigationUtil
          extended by com.atlassian.jira.functest.framework.assertions.DashboardAssertionsImpl
All Implemented Interfaces:
DashboardAssertions, com.atlassian.jira.testkit.client.log.FuncTestLogger

public class DashboardAssertionsImpl
extends AbstractNavigationUtil
implements DashboardAssertions

And implementation of DashboardAssertions

Since:
v3.13

Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
DashboardAssertionsImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, URLAssertions urlAssertions)
           
 
Method Summary
 void assertColumns(List<String> colHeaders, Locator dashboardsLocator)
          Assert that the columns exist
 void assertDashboardPages(List<? extends SharedEntityInfo> pages, Dashboard.Table table)
          Make sure that the passed dashboard pages are listed in the passed table.
 void assertDashboardPortlets(Long id, DashboardPagePortletInfo dashboardPortletInfo)
          Ensure that the given portlets exist on the passed dashboard page.
 void assertDefaultDashboardPortlets(DashboardPagePortletInfo dashboardPortletInfo)
          Ensure that the given portlets exist on the system default dashboard page.
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractNavigationUtil
getNavigation
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DashboardAssertionsImpl

public DashboardAssertionsImpl(net.sourceforge.jwebunit.WebTester tester,
                               JIRAEnvironmentData environmentData,
                               URLAssertions urlAssertions)
Method Detail

assertDashboardPortlets

public void assertDashboardPortlets(Long id,
                                    DashboardPagePortletInfo dashboardPortletInfo)
Description copied from interface: DashboardAssertions
Ensure that the given portlets exist on the passed dashboard page.

Specified by:
assertDashboardPortlets in interface DashboardAssertions
Parameters:
id - the id of the dashboard to check.
dashboardPortletInfo - the portlets that should exist on the dashboard.

assertDefaultDashboardPortlets

public void assertDefaultDashboardPortlets(DashboardPagePortletInfo dashboardPortletInfo)
Description copied from interface: DashboardAssertions
Ensure that the given portlets exist on the system default dashboard page.

Specified by:
assertDefaultDashboardPortlets in interface DashboardAssertions
Parameters:
dashboardPortletInfo - the portlets that should exist on the dashboard.

assertColumns

public void assertColumns(List<String> colHeaders,
                          Locator dashboardsLocator)
Description copied from interface: DashboardAssertions
Assert that the columns exist

Specified by:
assertColumns in interface DashboardAssertions
Parameters:
colHeaders - The text of the Column Header
dashboardsLocator - Locator of the dashboard table

assertDashboardPages

public void assertDashboardPages(List<? extends SharedEntityInfo> pages,
                                 Dashboard.Table table)
Description copied from interface: DashboardAssertions
Make sure that the passed dashboard pages are listed in the passed table.

Specified by:
assertDashboardPages in interface DashboardAssertions
Parameters:
pages - the pages to test.
table - the table that contains the portal pages.


Copyright © 2002-2013 Atlassian. All Rights Reserved.