use of org.apache.tapestry5.dom.Document in project tapestry-5 by apache.
the class TestableResponseImplTest method action_link.
@Test
public void action_link() {
Document document = tester.renderPage(TestPageForActionLinkWithStream.class.getSimpleName());
Element link = document.getElementById("mylink");
assertNotNull(link);
TestableResponse response = tester.clickLinkAndReturnResponse(link);
assertEquals(response.getOutput(), "<html><body>Rendered with TextStreamResponse</body></html>");
}
Aggregations