|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.atlassian.gzipfilter.TestUrlRewriteConfiguration
public class TestUrlRewriteConfiguration
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 |
|---|
public TestUrlRewriteConfiguration()
| Method Detail |
|---|
protected void setUp()
throws java.io.IOException
setUp in class junit.framework.TestCasejava.io.IOException
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exception
public void testBrowserSupportForGzip()
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public boolean isGzippedRequest(java.lang.String userAgent,
com.atlassian.gzipfilter.TestUrlRewriteConfiguration.TypedRequest typedRequest)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||