use of org.apache.tapestry5.services.pageload.ComponentResourceLocator in project tapestry-5 by apache.
the class ComponentTemplateSourceImplTest method mockLocator.
private ComponentResourceLocator mockLocator(ComponentModel model, ComponentResourceSelector selector, Resource templateResource) {
ComponentResourceLocator locator = newMock(ComponentResourceLocator.class);
expect(locator.locateTemplate(model, selector)).andReturn(templateResource).once();
return locator;
}
Aggregations