com.atlassian.gzipfilter
Class TestSelectingResponseWrapper

java.lang.Object
  extended by com.atlassian.gzipfilter.TestSelectingResponseWrapper

public class TestSelectingResponseWrapper
extends Object

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

TestSelectingResponseWrapper

public TestSelectingResponseWrapper()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

testNoZipOnSpecificContent

public void testNoZipOnSpecificContent()
                                throws IOException
Throws:
IOException

testNoZipOnRedirect

public void testNoZipOnRedirect()
                         throws IOException
Throws:
IOException

testNoZipOnError

public void testNoZipOnError()
                      throws IOException
Throws:
IOException

testNoZipOnNoContentResponse

public void testNoZipOnNoContentResponse()
Tests that the response is not gzipped when the response code is HttpServletResponse.SC_NO_CONTENT


testNoZipOnNotModifiedResponse

public void testNoZipOnNotModifiedResponse()
Tests that the response is not gzipped when the response code is HttpServletResponse.SC_NOT_MODIFIED


testNoActivateGzipWhenContentLengthHasBeenSetAlready

public void testNoActivateGzipWhenContentLengthHasBeenSetAlready()


Copyright © 2015 Atlassian. All rights reserved.