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, toString
assertEquals, 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, fail
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void testRenderResource_BasicCapture() throws Exception
Exception
public 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
.Exception
public void testRenderResource_Redirect() throws Exception
Exception
public 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
.
Exception
Copyright © 2005–2015 IIPC. All rights reserved.