|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.gzipfilter.TestSelectingResponseWrapper
public class TestSelectingResponseWrapper
This Class currently only tests that the content-encoding header is not set when a redirect/error occurs.
todo: Write tests for most of the functionality.
| Constructor Summary | |
|---|---|
TestSelectingResponseWrapper()
|
|
| Method Summary | |
|---|---|
void |
setUp()
|
void |
tearDown()
|
void |
testNoActivateGzipWhenContentLengthHasBeenSetAlready()
|
void |
testNoZipOnError()
|
void |
testNoZipOnNoContentResponse()
Tests that the response is not gzipped when the response code is HttpServletResponse.SC_NO_CONTENT |
void |
testNoZipOnNotModifiedResponse()
Tests that the response is not gzipped when the response code is HttpServletResponse.SC_NOT_MODIFIED |
void |
testNoZipOnRedirect()
|
void |
testNoZipOnSpecificContent()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestSelectingResponseWrapper()
| Method Detail |
|---|
public void setUp()
throws Exception
Exception
public void tearDown()
throws Exception
Exception
public void testNoZipOnSpecificContent()
throws IOException
IOException
public void testNoZipOnRedirect()
throws IOException
IOException
public void testNoZipOnError()
throws IOException
IOExceptionpublic void testNoZipOnNoContentResponse()
HttpServletResponse.SC_NO_CONTENT
public void testNoZipOnNotModifiedResponse()
HttpServletResponse.SC_NOT_MODIFIED
public void testNoActivateGzipWhenContentLengthHasBeenSetAlready()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||