Package net.toddm.comm.tests
Class TestResponse
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- net.toddm.comm.tests.TestResponse
-
- All Implemented Interfaces:
junit.framework.Test
public class TestResponse extends junit.framework.TestCase
-
-
Constructor Summary
Constructors Constructor Description TestResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtest304Responses()voidtestGetETagFromHeaders()voidtestGetLocationFromHeadersAbsolute()voidtestGetLocationFromHeadersRelative()voidtestGetMaxStaleFromHeaders()voidtestGetRetryAfterHTTPDateInTheFuture()voidtestGetRetryAfterHTTPDateInThePast()voidtestGetRetryAfterSeconds()voidtestGetTtlFromHeaders()voidtestInvalidateCache()voidtestPurgeCache()voidtestShouldNotCacheDueToNoCacheDirective()static voidvalidateInvalidateCache(net.toddm.cache.CacheProvider cache)static voidvalidatePurgeCache(net.toddm.cache.CacheProvider cache)-
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
-
-
-
-
Method Detail
-
validateInvalidateCache
public static void validateInvalidateCache(net.toddm.cache.CacheProvider cache) throws Exception- Throws:
Exception
-
validatePurgeCache
public static void validatePurgeCache(net.toddm.cache.CacheProvider cache) throws Exception- Throws:
Exception
-
testGetLocationFromHeadersAbsolute
public void testGetLocationFromHeadersAbsolute() throws Exception- Throws:
Exception
-
testGetLocationFromHeadersRelative
public void testGetLocationFromHeadersRelative() throws Exception- Throws:
Exception
-
testGetMaxStaleFromHeaders
public void testGetMaxStaleFromHeaders() throws Exception- Throws:
Exception
-
testShouldNotCacheDueToNoCacheDirective
public void testShouldNotCacheDueToNoCacheDirective() throws Exception- Throws:
Exception
-
testGetRetryAfterHTTPDateInTheFuture
public void testGetRetryAfterHTTPDateInTheFuture() throws Exception- Throws:
Exception
-
testGetRetryAfterHTTPDateInThePast
public void testGetRetryAfterHTTPDateInThePast() throws Exception- Throws:
Exception
-
-