@Test public void default_passivate_context() { ComponentClassResolver resolver = mockComponentClassResolver(); LinkSource source = mockLinkSource(); Link link = mockLink(); train_resolvePageClassNameToPageName(resolver, PAGE_CLASS.getName(), PAGE_NAME); expect(source.createPageRenderLink(PAGE_NAME, false)).andReturn(link); replay(); PageRenderLinkSource service = new PageRenderLinkSourceImpl(source, resolver); assertSame(service.createPageRenderLink(PAGE_CLASS), link); verify(); }
public Link createPageRenderLink(Class pageClass) { return createPageRenderLink(toPageName(pageClass)); }
PageRenderLinkSourceImpl implements PageRenderLinkSource { public Link createPageRenderLink(Class pageClass) { return createPageRenderLink(toPageName(pageClass)); } }
PageRenderLinkSourceImpl implements PageRenderLinkSource { public Link createPageRenderLink(Class pageClass) { return createPageRenderLink(toPageName(pageClass)); } PageRenderLinkSourceImpl(LinkSource linkSource, ComponentClassResolver resolver); }
PageRenderLinkSourceImpl implements PageRenderLinkSource { public Link createPageRenderLink(Class pageClass) { return createPageRenderLink(toPageName(pageClass)); } PageRenderLinkSourceImpl(LinkSource linkSource, ComponentClassResolver resolver); Link createPageRenderLink(Class pageClass); Link createPageRenderLink(String pageName); Link createPageRenderLinkWithContext(Class pageClass, Object... context); Link createPageRenderLinkWithContext(Class pageClass, EventContext eventContext); Link createPageRenderLinkWithContext(String pageName, Object... context); Link createPageRenderLinkWithContext(String pageName, EventContext eventContext); }
PageRenderLinkSourceImpl implements PageRenderLinkSource { public Link createPageRenderLink(Class pageClass) { return createPageRenderLink(toPageName(pageClass)); } PageRenderLinkSourceImpl(LinkSource linkSource, ComponentClassResolver resolver); Link createPageRenderLink(Class pageClass); Link createPageRenderLink(String pageName); Link createPageRenderLinkWithContext(Class pageClass, Object... context); Link createPageRenderLinkWithContext(Class pageClass, EventContext eventContext); Link createPageRenderLinkWithContext(String pageName, Object... context); Link createPageRenderLinkWithContext(String pageName, EventContext eventContext);  }