[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit FormParametersTest.java,1.8,1.9 WebFormT
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-01-08 23:21:56
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv13413/test/com/meterware/httpunit
Modified Files:
FormParametersTest.java WebFormTest.java
Log Message:
Started moving the manipulation of parameters to a separate class to allow alternative strategies
Index: FormParametersTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/FormParametersTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- FormParametersTest.java 2001/12/03 15:39:31 1.8
+++ FormParametersTest.java 2002/01/08 23:21:53 1.9
@@ -2,7 +2,7 @@
/********************************************************************************************************************
* $Id$
*
-* Copyright (c) 2000, Russell Gold
+* Copyright (c) 2000-2002, Russell Gold
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
Index: WebFormTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/WebFormTest.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- WebFormTest.java 2002/01/08 14:29:27 1.16
+++ WebFormTest.java 2002/01/08 23:21:53 1.17
@@ -2,7 +2,7 @@
/********************************************************************************************************************
* $Id$
*
-* Copyright (c) 2000-2001, Russell Gold
+* Copyright (c) 2000-2002, Russell Gold
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
@@ -128,6 +128,10 @@
assertTrue( "Did not find parameter 'first'", form.hasParameterNamed( "first" ) );
assertTrue( "Did not find parameter with prefix 'sec'", form.hasParameterStartingWithPrefix( "sec" ) );
assertTrue( "Did not find parameter with prefix 'nam'", form.hasParameterStartingWithPrefix( "nam" ) );
+
+ assertEquals( "Original text area value", "Something", form.getParameterValue( "name" ) );
+// form.setParameter( "name", "Something Else" );
+// assertEquals( "Changed text area value", "Something Else", form.getParameterValue( "name" ) );
}
|