@Test(dependsOnMethods="selectCustomizeSite", groups="Enterprise-only") public void getAvailablePages() { List<SitePageType> availablePageTypes = customizeSitePage.getAvailablePages(); assertNotNull(availablePageTypes); List<SitePageType> expectedPageTypes = new ArrayList<SitePageType>(); Collections.addAll(expectedPageTypes, SitePageType.values()); expectedPageTypes.remove(SitePageType.DOCUMENT_LIBRARY); assertEquals(availablePageTypes.size(), expectedPageTypes.size()); assertEquals(availablePageTypes, expectedPageTypes); }
public List<SitePageType> getAvailablePages() { return getPages(AVAILABLE_PAGES); }
CustomizeSitePage extends SitePage { public List<SitePageType> getAvailablePages() { return getPages(AVAILABLE_PAGES); } }
CustomizeSitePage extends SitePage { public List<SitePageType> getAvailablePages() { return getPages(AVAILABLE_PAGES); } CustomizeSitePage(WebDrone drone); }
CustomizeSitePage extends SitePage { public List<SitePageType> getAvailablePages() { return getPages(AVAILABLE_PAGES); } CustomizeSitePage(WebDrone drone); @SuppressWarnings("unchecked") @Override CustomizeSitePage render(RenderTime timer); @SuppressWarnings("unchecked") @Override CustomizeSitePage render(long time); @SuppressWarnings("unchecked") @Override CustomizeSitePage render(); List<SitePageType> getCurrentPages(); List<SitePageType> getAvailablePages(); SiteDashboardPage addPages(List<SitePageType> pageTypes); SiteDashboardPage addAllPages(); }
CustomizeSitePage extends SitePage { public List<SitePageType> getAvailablePages() { return getPages(AVAILABLE_PAGES); } CustomizeSitePage(WebDrone drone); @SuppressWarnings("unchecked") @Override CustomizeSitePage render(RenderTime timer); @SuppressWarnings("unchecked") @Override CustomizeSitePage render(long time); @SuppressWarnings("unchecked") @Override CustomizeSitePage render(); List<SitePageType> getCurrentPages(); List<SitePageType> getAvailablePages(); SiteDashboardPage addPages(List<SitePageType> pageTypes); SiteDashboardPage addAllPages();  }