Class TestResponse

  • All Implemented Interfaces:
    junit.framework.Test

    public class TestResponse
    extends junit.framework.TestCase
    • Constructor Detail

      • TestResponse

        public TestResponse()
    • Method Detail

      • testInvalidateCache

        public void testInvalidateCache()
                                 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
      • testGetETagFromHeaders

        public void testGetETagFromHeaders()
                                    throws Exception
        Throws:
        Exception
      • testGetTtlFromHeaders

        public void testGetTtlFromHeaders()
                                   throws Exception
        Throws:
        Exception
      • testGetMaxStaleFromHeaders

        public void testGetMaxStaleFromHeaders()
                                        throws Exception
        Throws:
        Exception
      • testShouldNotCacheDueToNoCacheDirective

        public void testShouldNotCacheDueToNoCacheDirective()
                                                     throws Exception
        Throws:
        Exception
      • testGetRetryAfterSeconds

        public void testGetRetryAfterSeconds()
                                      throws Exception
        Throws:
        Exception
      • testGetRetryAfterHTTPDateInTheFuture

        public void testGetRetryAfterHTTPDateInTheFuture()
                                                  throws Exception
        Throws:
        Exception
      • testGetRetryAfterHTTPDateInThePast

        public void testGetRetryAfterHTTPDateInThePast()
                                                throws Exception
        Throws:
        Exception