@Test public void get_page_by_logical_name() { RequestPageCache cache = mockRequestPageCache(); Page page = mockPage(); Component component = mockComponent(); ComponentClassResolver resolver = mockComponentClassResolver(); train_get(cache, PAGE_NAME, page); train_getRootComponent(page, component); replay(); ComponentSource source = new ComponentSourceImpl(cache, resolver, null); assertSame(source.getPage(PAGE_NAME), component); verify(); }
public Component getPage(String pageName) { assert pageName != null; Page page = pageCache.get(pageName); return page.getRootComponent(); }
ComponentSourceImpl implements ComponentSource { public Component getPage(String pageName) { assert pageName != null; Page page = pageCache.get(pageName); return page.getRootComponent(); } }
ComponentSourceImpl implements ComponentSource { public Component getPage(String pageName) { assert pageName != null; Page page = pageCache.get(pageName); return page.getRootComponent(); } ComponentSourceImpl(RequestPageCache pageCache, ComponentClassResolver resolver, RequestGlobals globals); }
ComponentSourceImpl implements ComponentSource { public Component getPage(String pageName) { assert pageName != null; Page page = pageCache.get(pageName); return page.getRootComponent(); } ComponentSourceImpl(RequestPageCache pageCache, ComponentClassResolver resolver, RequestGlobals globals); Component getComponent(String completeId); Component getPage(String pageName); Component getPage(Class pageClass); Component getActivePage(); }
ComponentSourceImpl implements ComponentSource { public Component getPage(String pageName) { assert pageName != null; Page page = pageCache.get(pageName); return page.getRootComponent(); } ComponentSourceImpl(RequestPageCache pageCache, ComponentClassResolver resolver, RequestGlobals globals); Component getComponent(String completeId); Component getPage(String pageName); Component getPage(Class pageClass); Component getActivePage();  }