use of org.apache.tapestry5.services.ComponentSource in project tapestry-5 by apache.
the class ComponentSourceImplTest method get_page_by_logical_name.
@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();
}
Aggregations