Class WebDashboard
- java.lang.Object
-
- com.atlassian.confluence.it.dashboard.WebDashboard
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.it.dashboard.Dashboard
DEFAULT_WELCOME_MESSAGE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertTabNotVisible(String tab)voidassertTabVisible(String tab)intcountChangeSets()intcountUpdateItems()static WebDashboardgetDashboard()Defaults to the "All" tab for the recently updated sectionstatic WebDashboardgetDashboard(Map<String,Object> params)static WebDashboardgetDashboard(Map<String,Object> params, net.sourceforge.jwebunit.junit.WebTester tester)static WebDashboardgetDashboard(net.sourceforge.jwebunit.junit.WebTester tester)static WebDashboardgetDashboardUpdatesMacroOnPage(AbstractPageEntity page)static WebDashboardgetDashboardUpdatesMacroOnPage(AbstractPageEntity page, Map<String,Object> params)intgetItemsWithMatchingTitle(String title)RecentlyUpdatedChangeSetgetRecentUpdate(int index)Returns the recently updated change-set at the specified index on the dashboard, or null if such an item does not exist.List<RecentlyUpdatedChangeSet>getRecentUpdates()Returns the recently updated content from the dashboard asRecentlyUpdatedChangeSetobjects in the order they appear on the dashboard.DategetRequestTime()Returns the request timestamp inserted by the server in a meta tag in the HTML header.StringgetSelectedTabName()
-
-
-
Method Detail
-
getDashboard
public static WebDashboard getDashboard(Map<String,Object> params)
-
getDashboard
public static WebDashboard getDashboard(Map<String,Object> params, net.sourceforge.jwebunit.junit.WebTester tester)
-
getDashboardUpdatesMacroOnPage
public static WebDashboard getDashboardUpdatesMacroOnPage(AbstractPageEntity page, Map<String,Object> params)
-
getDashboardUpdatesMacroOnPage
public static WebDashboard getDashboardUpdatesMacroOnPage(AbstractPageEntity page)
-
getDashboard
public static WebDashboard getDashboard()
Defaults to the "All" tab for the recently updated section
-
getDashboard
public static WebDashboard getDashboard(net.sourceforge.jwebunit.junit.WebTester tester)
-
getRecentUpdates
public List<RecentlyUpdatedChangeSet> getRecentUpdates()
Description copied from interface:DashboardReturns the recently updated content from the dashboard asRecentlyUpdatedChangeSetobjects in the order they appear on the dashboard.- Specified by:
getRecentUpdatesin interfaceDashboard- Returns:
- a list of
RecentlyUpdatedChangeSetobjects.
-
getRecentUpdate
public RecentlyUpdatedChangeSet getRecentUpdate(int index)
Description copied from interface:DashboardReturns the recently updated change-set at the specified index on the dashboard, or null if such an item does not exist. An index of zero indicates the first (i.e. most recent) changeset on the list.- Specified by:
getRecentUpdatein interfaceDashboard- Parameters:
index- the zero-based index of the recently updated change-set on dashboard to return.- Returns:
- the recently updated change-set on the dashboard with the specified index, or null if one does not exist.
-
getRequestTime
public Date getRequestTime()
Description copied from interface:DashboardReturns the request timestamp inserted by the server in a meta tag in the HTML header. Useful for checking times on recent updates. Returns null if the meta tag is not found.- Specified by:
getRequestTimein interfaceDashboard
-
countUpdateItems
public int countUpdateItems()
- Specified by:
countUpdateItemsin interfaceDashboard- Returns:
- the number of update items (not change sets) on the dashboard page.
-
countChangeSets
public int countChangeSets()
- Specified by:
countChangeSetsin interfaceDashboard- Returns:
- the number of change sets on the dashboard page
-
getItemsWithMatchingTitle
public int getItemsWithMatchingTitle(String title)
- Parameters:
title- Title to look for- Returns:
- number of recently updated items with the given title.
-
assertTabVisible
public void assertTabVisible(String tab)
-
assertTabNotVisible
public void assertTabNotVisible(String tab)
-
getSelectedTabName
public String getSelectedTabName()
-
-