[Httpunit-commit] CVS: httpunit/src/com/meterware/servletunit ServletUnitHttpSession.java,1.7,1.8
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-02-25 17:17:33
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/servletunit
In directory sc8-pr-cvs1:/tmp/cvs-serv21722/src/com/meterware/servletunit
Modified Files:
ServletUnitHttpSession.java
Log Message:
Support HttpSession.getValueNames
Index: ServletUnitHttpSession.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/servletunit/ServletUnitHttpSession.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ServletUnitHttpSession.java 6 Feb 2003 01:33:11 -0000 1.7
+++ ServletUnitHttpSession.java 25 Feb 2003 17:17:29 -0000 1.8
@@ -146,7 +146,7 @@
**/
public String[] getValueNames() {
if (_invalid) throw new IllegalStateException();
- throw new RuntimeException( "getValueNames not implemented" );
+ return (String[]) _values.keySet().toArray( new String[ _values.size() ]);
}
|