@Test public void get_active_page_before_known() { RequestGlobals globals = mockRequestGlobals(); expect(globals.getActivePageName()).andReturn(null); replay(); ComponentSource source = new ComponentSourceImpl(null, null, globals); assertNull(source.getActivePage()); verify(); }
public Component getActivePage() { String pageName = globals.getActivePageName(); return pageName == null ? null : getPage(pageName); }
ComponentSourceImpl implements ComponentSource { public Component getActivePage() { String pageName = globals.getActivePageName(); return pageName == null ? null : getPage(pageName); } }
ComponentSourceImpl implements ComponentSource { public Component getActivePage() { String pageName = globals.getActivePageName(); return pageName == null ? null : getPage(pageName); } ComponentSourceImpl(RequestPageCache pageCache, ComponentClassResolver resolver, RequestGlobals globals); }
ComponentSourceImpl implements ComponentSource { public Component getActivePage() { String pageName = globals.getActivePageName(); return pageName == null ? null : getPage(pageName); } 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 getActivePage() { String pageName = globals.getActivePageName(); return pageName == null ? null : getPage(pageName); } ComponentSourceImpl(RequestPageCache pageCache, ComponentClassResolver resolver, RequestGlobals globals); Component getComponent(String completeId); Component getPage(String pageName); Component getPage(Class pageClass); Component getActivePage();  }