@Test(dependsOnMethods = "getSites", groups = { "alfresco-one" }) public void getSiteName() { userSiteItem = userSitesPage.getSite(siteName1); assertEquals(userSiteItem.getSiteName(), siteName1); }
public UserSiteItem getSite(String siteName) { List<UserSiteItem> sites = getSites(); for (UserSiteItem site : sites) { if (site.getSiteName().equals(siteName)) { return site; } } throw new PageOperationException("Unable to find site: " + siteName); }
UserSitesPage extends SharePage { public UserSiteItem getSite(String siteName) { List<UserSiteItem> sites = getSites(); for (UserSiteItem site : sites) { if (site.getSiteName().equals(siteName)) { return site; } } throw new PageOperationException("Unable to find site: " + siteName); } }
UserSitesPage extends SharePage { public UserSiteItem getSite(String siteName) { List<UserSiteItem> sites = getSites(); for (UserSiteItem site : sites) { if (site.getSiteName().equals(siteName)) { return site; } } throw new PageOperationException("Unable to find site: " + siteName); } UserSitesPage(WebDrone drone); }
UserSitesPage extends SharePage { public UserSiteItem getSite(String siteName) { List<UserSiteItem> sites = getSites(); for (UserSiteItem site : sites) { if (site.getSiteName().equals(siteName)) { return site; } } throw new PageOperationException("Unable to find site: " + siteName); } UserSitesPage(WebDrone drone); @SuppressWarnings("unchecked") @Override UserSitesPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override UserSitesPage render(); @SuppressWarnings("unchecked") @Override UserSitesPage render(final long time); ProfileNavigation getProfileNav(); boolean isNoSiteMessagePresent(); List<UserSiteItem> getSites(); UserSiteItem getSite(String siteName); }
UserSitesPage extends SharePage { public UserSiteItem getSite(String siteName) { List<UserSiteItem> sites = getSites(); for (UserSiteItem site : sites) { if (site.getSiteName().equals(siteName)) { return site; } } throw new PageOperationException("Unable to find site: " + siteName); } UserSitesPage(WebDrone drone); @SuppressWarnings("unchecked") @Override UserSitesPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override UserSitesPage render(); @SuppressWarnings("unchecked") @Override UserSitesPage render(final long time); ProfileNavigation getProfileNav(); boolean isNoSiteMessagePresent(); List<UserSiteItem> getSites(); UserSiteItem getSite(String siteName);  }