[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit WebLinkTest.java,1.20,1.21
Brought to you by:
russgold
From: Russell G. <rus...@us...> - 2002-07-30 13:17:52
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit In directory usw-pr-cvs1:/tmp/cvs-serv6811/test/com/meterware/httpunit Modified Files: WebLinkTest.java Log Message: Use sendRequest to test link following Index: WebLinkTest.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/WebLinkTest.java,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- WebLinkTest.java 25 Jul 2002 11:19:18 -0000 1.20 +++ WebLinkTest.java 30 Jul 2002 13:17:49 -0000 1.21 @@ -166,8 +166,8 @@ assertEquals( "Num links in next page", 1, nextPage.getLinks().length ); link = nextPage.getLinks()[0]; - WebResponse thirdPage = wc.getResponse( link.getRequest() ); - assertEquals( "Title of next page", "Initial", thirdPage.getTitle() ); + wc.sendRequest( link.getRequest() ); + assertEquals( "Title of next page", "Initial", wc.getFrameContents( link.getTarget() ).getTitle() ); } |