[Httpunit-commit] CVS: httpunit/test/com/meterware/servletunit JUnitServletTest.java,1.3,1.4
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-10-17 23:50:54
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/servletunit
In directory usw-pr-cvs1:/tmp/cvs-serv3856/test/com/meterware/servletunit
Modified Files:
JUnitServletTest.java
Log Message:
Added support for associating cookies with servers
Index: JUnitServletTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/servletunit/JUnitServletTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- JUnitServletTest.java 1 Aug 2002 14:58:59 -0000 1.3
+++ JUnitServletTest.java 17 Oct 2002 23:50:51 -0000 1.4
@@ -19,28 +19,27 @@
* DEALINGS IN THE SOFTWARE.
*
*******************************************************************************************************************/
+import com.meterware.httpunit.WebRequest;
import com.meterware.httpunit.WebResponse;
import com.meterware.httpunit.WebTable;
-import com.meterware.httpunit.WebRequest;
-import java.util.Properties;
-import java.util.Dictionary;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.MalformedURLException;
+import java.util.Dictionary;
+import java.util.Properties;
+import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.Cookie;
-import javax.servlet.ServletException;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
*
- * @author <a href="mailto:rus...@ac...">Russell Gold</a>
+ * @author <a href="mailto:rus...@ht...">Russell Gold</a>
**/
public class JUnitServletTest extends TestCase {
private ServletRunner _runner;
@@ -180,8 +179,8 @@
static class MyFactory implements InvocationContextFactory {
private static ServletRunner _runner;
- public InvocationContext newInvocation( ServletUnitClient client, WebRequest request, Cookie[] clientCookies, Dictionary clientHeaders, byte[] messageBody ) throws IOException, MalformedURLException {
- return new InvocationContextImpl( client, _runner, request, clientCookies, clientHeaders, messageBody );
+ public InvocationContext newInvocation( ServletUnitClient client, WebRequest request, Dictionary clientHeaders, byte[] messageBody ) throws IOException, MalformedURLException {
+ return new InvocationContextImpl( client, _runner, request, clientHeaders, messageBody );
}
}
}
|