[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit FormSubmitTest.java,1.24,1.25
Brought to you by:
russgold
From: Russell G. <rus...@us...> - 2002-08-29 20:51:18
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit In directory usw-pr-cvs1:/tmp/cvs-serv29952/test/com/meterware/httpunit Modified Files: FormSubmitTest.java Log Message: WebRequest.getRequestParameterNames now only lists sent parameter names Index: FormSubmitTest.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/FormSubmitTest.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- FormSubmitTest.java 29 Aug 2002 18:39:11 -0000 1.24 +++ FormSubmitTest.java 29 Aug 2002 20:51:02 -0000 1.25 @@ -148,13 +148,15 @@ public void testSubmitButtonDetection() throws Exception { defineWebPage( "Default", "<form method=GET action = \"/ask\">" + "<Input type=text name=age value=12>" + - "<Input type=submit name=update>" + - "<Input type=submit name=recalculate>" + + "<Input type=submit name=update value=update>" + + "<Input type=submit name=recalculate value=value>" + "</form>" ); WebResponse page = _wc.getResponse( getHostPath() + "/Default.html" ); WebForm form = page.getForms()[0]; SubmitButton[] buttons = form.getSubmitButtons(); assertEquals( "num detected submit buttons", 2, buttons.length ); + assertMatchingSet( "selected request parameters", new String[]{"age","update"}, + form.getRequest( "update" ).getRequestParameterNames() ); } |