You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2002/05/23 21:42:47 UTC
cvs commit: jakarta-tomcat-connectors/http11/src/test/java/org/apache/coyote/http11 FileTester.java
remm 02/05/23 12:42:47
Modified: http11/src/test/java/org/apache/coyote/http11
FileTester.java
Log:
- Update the test to follow the small API modifications.
- Will use a fake socket connected to port 8080 on localhost.
Revision Changes Path
1.4 +5 -1 jakarta-tomcat-connectors/http11/src/test/java/org/apache/coyote/http11/FileTester.java
Index: FileTester.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/http11/src/test/java/org/apache/coyote/http11/FileTester.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- FileTester.java 15 Jan 2002 16:00:10 -0000 1.3
+++ FileTester.java 23 May 2002 19:42:47 -0000 1.4
@@ -64,9 +64,11 @@
import java.io.InputStream;
import java.io.IOException;
import java.io.OutputStream;
+import java.net.Socket;
import java.util.Locale;
import org.apache.coyote.Adapter;
+import org.apache.coyote.ActionCode;
import org.apache.coyote.Processor;
/**
@@ -134,7 +136,9 @@
File outputFile = new File(args[1]);
Adapter testAdapter = new RandomAdapter();
- Processor http11Processor = new Http11Processor();
+ Http11Processor http11Processor = new Http11Processor();
+ http11Processor.setSocket(new Socket("127.0.0.1", 8080));
+ http11Processor.action(ActionCode.ACTION_START, null);
FileTester tester = new FileTester(testAdapter, http11Processor,
inputFile, outputFile);
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>