450873 Disable tests that downcaste wrapped GzipFilterResponses
This commit is contained in:
parent
5165d4c7ad
commit
85811dad9b
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue