public class TransparentReplayRendererTest
extends junit.framework.TestCase
TransparentReplayRenderer| Modifier and Type | Class and Description |
|---|---|
static class |
TransparentReplayRendererTest.TestServletOutputStream |
| Constructor and Description |
|---|
TransparentReplayRendererTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
testRenderResource_BasicCapture() |
void |
testRenderResource_Chunked()
test replay of capture with
Transfer-Encoding: chunked. |
void |
testRenderResource_CompressedCapture()
test replay of capture with
Content-Encoding: gzip. |
void |
testRenderResource_Redirect() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, failprotected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionpublic void testRenderResource_BasicCapture()
throws Exception
Exceptionpublic void testRenderResource_CompressedCapture()
throws Exception
Content-Encoding: gzip.
TransparentReplayRenderer copies original, compressed payload to the output.
TODO: should render uncompressed content if client cannot handle
Content-Encoding: gzip.Exceptionpublic void testRenderResource_Redirect()
throws Exception
Exceptionpublic void testRenderResource_Chunked()
throws Exception
Transfer-Encoding: chunked.
TransparentReplayRenderer writes out chunk-decoded payload, because
WarcResource always decodes chunked-entity. Point of this test
is that response never have Transfer-Encoding: chunked header,
even when initialized with IdentityHttpHeaderProcessor.
so, this is not really a unit test for TransparentReplayRenderer, but
a multi-component test placed here for convenience.
This test does not use member object cut, in order to test
with IdentityHttpHeaderProcessor.
ExceptionCopyright © 2005–2015 IIPC. All rights reserved.