use of org.apache.tapestry5.services.MetaDataLocator in project tapestry-5 by apache.
the class PageImplTest method get_by_nested_id_for_blank_value_returns_root_component.
@Test
public void get_by_nested_id_for_blank_value_returns_root_component() {
ComponentPageElement root = mockComponentPageElement();
MetaDataLocator locator = newMetaDataLocator(LOGICAL_PAGE_NAME, true);
replay();
Page page = new PageImpl(LOGICAL_PAGE_NAME, selector, null, perThreadManager, locator);
page.setRootElement(root);
assertSame(page.getComponentElementByNestedId(""), root);
verify();
}
use of org.apache.tapestry5.services.MetaDataLocator in project tapestry-5 by apache.
the class InternalBaseTestCase method neverWhitelistProtected.
protected final MetaDataLocator neverWhitelistProtected() {
MetaDataLocator l = mockMetaDataLocator();
expect(l.findMeta(EasyMock.anyObject(String.class), EasyMock.anyObject(String.class), EasyMock.eq(boolean.class))).andReturn(false);
return l;
}
Aggregations