This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push: new 47afb7c Revert as relevant tests are already present in another class 47afb7c is described below commit 47afb7cfe31922c57af0594a696dc5c38e3ea716 Author: remm <r...@apache.org> AuthorDate: Thu Mar 19 18:33:52 2020 +0100 Revert as relevant tests are already present in another class --- .../coyote/http11/TestHttp11InputBuffer.java | 45 ---------------------- 1 file changed, 45 deletions(-) diff --git a/test/org/apache/coyote/http11/TestHttp11InputBuffer.java b/test/org/apache/coyote/http11/TestHttp11InputBuffer.java index c9204a2..a1d50d0 100644 --- a/test/org/apache/coyote/http11/TestHttp11InputBuffer.java +++ b/test/org/apache/coyote/http11/TestHttp11InputBuffer.java @@ -17,15 +17,8 @@ package org.apache.coyote.http11; -import java.io.BufferedReader; import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.OutputStream; -import java.io.OutputStreamWriter; import java.io.PrintWriter; -import java.io.Writer; -import java.net.Socket; import java.util.Enumeration; import jakarta.servlet.ServletException; @@ -663,44 +656,6 @@ public class TestHttp11InputBuffer extends TomcatBaseTest { @Test - public void testValidHttp09() throws Exception { - - Tomcat tomcat = getTomcatInstance(); - - tomcat.addContext("", TEMP_DIR); - tomcat.start(); - - Socket socket = null; - OutputStream os = null; - InputStream is = null; - BufferedReader reader = null; - Writer writer = null; - final String encoding = "ISO-8859-1"; - - for (int i = 0; i < 10; i++) { - socket = new Socket("localhost", getPort()); - os = socket.getOutputStream(); - writer = new OutputStreamWriter(os, encoding); - writer.write("GET /"); - writer.flush(); - Thread.sleep(10); - writer.write(CR); - writer.flush(); - Thread.sleep(10); - writer.write(LF); - writer.flush(); - is = socket.getInputStream(); - reader = new BufferedReader(new InputStreamReader(is)); - String line = reader.readLine(); - Assert.assertNotNull(line); - Assert.assertTrue(line.indexOf("404") != -1); - socket.close(); - } - - } - - - @Test public void testInvalidHttp09() { String[] request = new String[1]; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org