@Test(groups = "alfresco-one", dependsOnMethods = "selectActivity") public void getActivities() throws IOException { List<ActivityShareLink> activities; drone.navigateTo(shareUrl); dashBoard = drone.getCurrentPage().render(); RenderTime timer = new RenderTime(60000); while (true) { timer.start(); try { drone.refresh(); MyActivitiesDashlet dashlet = dashBoard.getDashlet("activities").render(); activities = dashlet.getActivities(); if (!activities.isEmpty()) { break; } } catch (PageException e) { } finally { timer.end(); } } Assert.assertNotNull(activities); if (activities.isEmpty()) saveScreenShot("getActivities.empty"); Assert.assertFalse(activities.isEmpty()); }
public synchronized List<ActivityShareLink> getActivities() { if (activity == null) { populateData(); } return activity; }
MyActivitiesDashlet extends AbstractDashlet implements Dashlet { public synchronized List<ActivityShareLink> getActivities() { if (activity == null) { populateData(); } return activity; } }
MyActivitiesDashlet extends AbstractDashlet implements Dashlet { public synchronized List<ActivityShareLink> getActivities() { if (activity == null) { populateData(); } return activity; } protected  MyActivitiesDashlet(WebDrone drone); }
MyActivitiesDashlet extends AbstractDashlet implements Dashlet { public synchronized List<ActivityShareLink> getActivities() { if (activity == null) { populateData(); } return activity; } protected  MyActivitiesDashlet(WebDrone drone); @SuppressWarnings("unchecked") MyActivitiesDashlet render(); @SuppressWarnings("unchecked") @Override MyActivitiesDashlet render(final long time); @SuppressWarnings("unchecked") MyActivitiesDashlet render(RenderTime timer); ActivityShareLink selectLink(final String name); HtmlPage selectActivityDocument(final String name); HtmlPage selectActivityUser(final String name); HtmlPage selectActivitySite(final String name); synchronized List<ActivityShareLink> getActivities(); HtmlPage selectOptionFromUserActivities(String myActivitiesOption); HtmlPage selectOptionFromHistoryFilter(SiteActivitiesHistoryFilter lastDays); RssFeedPage selectRssFeedPage(String username, String password); boolean isOptionSelected(String myActivitiesOption); boolean isHistoryOptionSelected(SiteActivitiesHistoryFilter lastDays); }
MyActivitiesDashlet extends AbstractDashlet implements Dashlet { public synchronized List<ActivityShareLink> getActivities() { if (activity == null) { populateData(); } return activity; } protected  MyActivitiesDashlet(WebDrone drone); @SuppressWarnings("unchecked") MyActivitiesDashlet render(); @SuppressWarnings("unchecked") @Override MyActivitiesDashlet render(final long time); @SuppressWarnings("unchecked") MyActivitiesDashlet render(RenderTime timer); ActivityShareLink selectLink(final String name); HtmlPage selectActivityDocument(final String name); HtmlPage selectActivityUser(final String name); HtmlPage selectActivitySite(final String name); synchronized List<ActivityShareLink> getActivities(); HtmlPage selectOptionFromUserActivities(String myActivitiesOption); HtmlPage selectOptionFromHistoryFilter(SiteActivitiesHistoryFilter lastDays); RssFeedPage selectRssFeedPage(String username, String password); boolean isOptionSelected(String myActivitiesOption); boolean isHistoryOptionSelected(SiteActivitiesHistoryFilter lastDays);  }