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 void
assertTabNotVisible(String tab)
void
assertTabVisible(String tab)
int
countChangeSets()
int
countUpdateItems()
static WebDashboard
getDashboard()
Defaults to the "All" tab for the recently updated sectionstatic WebDashboard
getDashboard(Map<String,Object> params)
static WebDashboard
getDashboard(Map<String,Object> params, net.sourceforge.jwebunit.junit.WebTester tester)
static WebDashboard
getDashboard(net.sourceforge.jwebunit.junit.WebTester tester)
static WebDashboard
getDashboardUpdatesMacroOnPage(AbstractPageEntity page)
static WebDashboard
getDashboardUpdatesMacroOnPage(AbstractPageEntity page, Map<String,Object> params)
int
getItemsWithMatchingTitle(String title)
RecentlyUpdatedChangeSet
getRecentUpdate(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 asRecentlyUpdatedChangeSet
objects in the order they appear on the dashboard.Date
getRequestTime()
Returns the request timestamp inserted by the server in a meta tag in the HTML header.String
getSelectedTabName()
-
-
-
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:Dashboard
Returns the recently updated content from the dashboard asRecentlyUpdatedChangeSet
objects in the order they appear on the dashboard.- Specified by:
getRecentUpdates
in interfaceDashboard
- Returns:
- a list of
RecentlyUpdatedChangeSet
objects.
-
getRecentUpdate
public RecentlyUpdatedChangeSet getRecentUpdate(int index)
Description copied from interface:Dashboard
Returns 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:
getRecentUpdate
in 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:Dashboard
Returns 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:
getRequestTime
in interfaceDashboard
-
countUpdateItems
public int countUpdateItems()
- Specified by:
countUpdateItems
in interfaceDashboard
- Returns:
- the number of update items (not change sets) on the dashboard page.
-
countChangeSets
public int countChangeSets()
- Specified by:
countChangeSets
in 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()
-
-