<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Link test successful</title>
</head>
<body>
Success.
</body>
</html>
Test code:
public class LinkTest extends TestCase {
public void testClickLink() throws Exception {
ClientFacade client = new ClientFacade("/link.faces");
client.clickLink("link");
assertEquals("Link test successful", client.getWebResponse().getTitle());
}
}
The HTML that is returned using client.getWebResponse().getText is that of link.jsp. When I try the same test by hand, it is working OK.
How is this supposed to work?
Thanks,
Pieter Kuijpers.