From 7b162460d7246ee1515d1d9a7cc9e842eaa44c0c Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Thu, 11 Jul 2013 15:17:08 +1000 Subject: [PATCH] 412608 EOF Chunk not sent on inputstream static content removed debug. cleaned up imports. --- .../eclipse/jetty/server/HttpOutputTest.java | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/jetty-server/src/test/java/org/eclipse/jetty/server/HttpOutputTest.java b/jetty-server/src/test/java/org/eclipse/jetty/server/HttpOutputTest.java index 4b4a9d9dc00..c64387b6c65 100644 --- a/jetty-server/src/test/java/org/eclipse/jetty/server/HttpOutputTest.java +++ b/jetty-server/src/test/java/org/eclipse/jetty/server/HttpOutputTest.java @@ -16,45 +16,25 @@ // ======================================================================== // -/* - * Created on 9/01/2004 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ package org.eclipse.jetty.server; import static org.hamcrest.Matchers.containsString; -import static org.hamcrest.Matchers.greaterThan; -import static org.hamcrest.Matchers.startsWith; import static org.junit.Assert.assertThat; -import static org.junit.Assert.assertTrue; import java.io.FilterInputStream; import java.io.IOException; import java.io.InputStream; -import java.io.PrintWriter; import java.nio.ByteBuffer; import java.nio.channels.ReadableByteChannel; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.eclipse.jetty.http.HttpHeader; -import org.eclipse.jetty.http.HttpParser; -import org.eclipse.jetty.http.MimeTypes; import org.eclipse.jetty.server.handler.AbstractHandler; -import org.eclipse.jetty.util.BufferUtil; -import org.eclipse.jetty.util.log.Log; -import org.eclipse.jetty.util.log.Logger; -import org.eclipse.jetty.util.log.StdErrLog; import org.eclipse.jetty.util.resource.Resource; import org.hamcrest.Matchers; import org.junit.After; -import org.junit.Assert; import org.junit.Before; import org.junit.Test; @@ -114,7 +94,6 @@ public class HttpOutputTest Resource big = Resource.newClassPathResource("simple/big.txt"); _handler._contentInputStream=big.getInputStream(); String response=_connector.getResponses("GET / HTTP/1.0\nHost: localhost:80\n\n"); - System.err.println(response); assertThat(response,containsString("HTTP/1.1 200 OK")); assertThat(response,Matchers.not(containsString("Content-Length"))); } @@ -160,7 +139,6 @@ public class HttpOutputTest Resource big = Resource.newClassPathResource("simple/big.txt"); _handler._contentChannel=big.getReadableByteChannel(); String response=_connector.getResponses("GET / HTTP/1.0\nHost: localhost:80\n\n"); - System.err.println(response); assertThat(response,containsString("HTTP/1.1 200 OK")); assertThat(response,Matchers.not(containsString("Content-Length"))); }