com.atlassian.gzipfilter
Class TestUrlRewriteConfiguration

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.gzipfilter.TestUrlRewriteConfiguration
All Implemented Interfaces:
junit.framework.Test

public class TestUrlRewriteConfiguration
extends junit.framework.TestCase

Simple test case to determine if the default rewrite configuration works as expected.

Original test idea stolen from http://sujitpal.blogspot.com/search/label/junit


Constructor Summary
TestUrlRewriteConfiguration()
           
 
Method Summary
 boolean isGzippedRequest(java.lang.String userAgent, com.atlassian.gzipfilter.TestUrlRewriteConfiguration.TypedRequest typedRequest)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testBrowserSupportForGzip()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestUrlRewriteConfiguration

public TestUrlRewriteConfiguration()
Method Detail

setUp

protected void setUp()
              throws java.io.IOException
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.io.IOException

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testBrowserSupportForGzip

public void testBrowserSupportForGzip()
                               throws java.io.IOException,
                                      javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

isGzippedRequest

public boolean isGzippedRequest(java.lang.String userAgent,
                                com.atlassian.gzipfilter.TestUrlRewriteConfiguration.TypedRequest typedRequest)
                         throws java.io.IOException,
                                javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.