Search in sources :

Example 1 with LocationImpl

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]");
}
Also used : ClasspathResource(org.apache.tapestry5.ioc.internal.util.ClasspathResource) Resource(org.apache.tapestry5.commons.Resource) ClasspathResource(org.apache.tapestry5.ioc.internal.util.ClasspathResource) LocationImpl(org.apache.tapestry5.ioc.internal.util.LocationImpl) Location(org.apache.tapestry5.commons.Location) Test(org.testng.annotations.Test)

Aggregations

Location (org.apache.tapestry5.commons.Location)1 Resource (org.apache.tapestry5.commons.Resource)1 ClasspathResource (org.apache.tapestry5.ioc.internal.util.ClasspathResource)1 LocationImpl (org.apache.tapestry5.ioc.internal.util.LocationImpl)1 Test (org.testng.annotations.Test)1