[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit FormParametersTest.java,1.21,1.22
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2004-03-15 02:51:19
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22771/test/com/meterware/httpunit Modified Files: FormParametersTest.java Log Message: bug #872129: Cookie header set on a web request was ignored in servletunit Index: FormParametersTest.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/FormParametersTest.java,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- FormParametersTest.java 24 Jun 2003 22:40:36 -0000 1.21 +++ FormParametersTest.java 15 Mar 2004 02:42:16 -0000 1.22 @@ -279,6 +279,17 @@ } catch (IllegalRequestParameterException e) { } + form.toggleCheckbox( "color", "red" ); + assertMatchingSet( "color checkboxes", new String[] { "red" }, form.getParameterValues( "color" ) ); + form.setCheckbox( "color", "blue", true ); + assertMatchingSet( "color checkboxes", new String[] { "red", "blue" }, form.getParameterValues( "color" ) ); + + try { + form.setCheckbox( "color", "green", true ); + fail( "Did not forbid setting checkbox with unknown value" ); + } catch (IllegalRequestParameterException e) { + } + } |