public class DashboardAssertionsImpl extends Object implements DashboardAssertions
Constructor and Description |
---|
DashboardAssertionsImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData,
URLAssertions urlAssertions) |
Modifier and Type | Method and Description |
---|---|
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.
|
@Inject public DashboardAssertionsImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, URLAssertions urlAssertions)
public void assertDashboardPortlets(Long id, DashboardPagePortletInfo dashboardPortletInfo)
DashboardAssertions
assertDashboardPortlets
in interface DashboardAssertions
id
- the id of the dashboard to check.dashboardPortletInfo
- the portlets that should exist on the dashboard.public void assertDefaultDashboardPortlets(DashboardPagePortletInfo dashboardPortletInfo)
DashboardAssertions
assertDefaultDashboardPortlets
in interface DashboardAssertions
dashboardPortletInfo
- the portlets that should exist on the dashboard.public void assertColumns(List<String> colHeaders, Locator dashboardsLocator)
DashboardAssertions
assertColumns
in interface DashboardAssertions
colHeaders
- The text of the Column HeaderdashboardsLocator
- Locator of the dashboard tablepublic void assertDashboardPages(List<? extends SharedEntityInfo> pages, Dashboard.Table table)
DashboardAssertions
assertDashboardPages
in interface DashboardAssertions
pages
- the pages to test.table
- the table that contains the portal pages.Copyright © 2002-2019 Atlassian. All Rights Reserved.