use of org.apache.tapestry5.ioc.internal.util.LocationImpl in project tapestry-5 by apache.
the class BlockImplTest method to_string.
@Test
public void to_string() {
Resource r = new ClasspathResource("foo/pages/MyPage.tml");
Location l = new LocationImpl(r, 23);
BlockImpl block = new BlockImpl(l, "test block");
assertEquals(block.toString(), "Block[test block, at classpath:foo/pages/MyPage.tml, line 23]");
}
Aggregations