450873 Disable tests that downcaste wrapped GzipFilterResponses

This commit is contained in:
Greg Wilkins 2014-11-12 10:41:48 +11:00
parent 5165d4c7ad
commit 85811dad9b
2 changed files with 3 additions and 2 deletions

View File

@ -344,9 +344,10 @@ public class GzipFilterContentLengthTest
* @see <a href="Eclipse Bug 450873">http://bugs.eclipse.org/450873</a>
*/
@Test
@Ignore
public void testHttpOutputWrite() throws Exception
{
if (gzipFilterClass == GzipFilter.class)
return; // Can't downcaste output stream when wrapper is used
testWithGzip(TestServletBufferTypeLengthWrite.class);
}
}

View File

@ -61,7 +61,7 @@ public class TestServletBufferTypeLengthWrite extends TestDirContentServlet
response.setHeader("ETag","W/etag-"+fileName);
response.setContentLength(dataBytes.length);
((HttpOutput)out).write(ByteBuffer.wrap(dataBytes).asReadOnlyBuffer());
}
}