Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
662 0 0 0 100% 1.379 s

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.apache.hc.client5.http.impl.schedule 2 0 0 0 100% 0.002 s
org.apache.hc.client5.http.schedule 1 0 0 0 100% 0.002 s
org.apache.hc.client5.http.cache 36 0 0 0 100% 0.301 s
org.apache.hc.client5.http.impl.cache 621 0 0 0 100% 1.071 s
org.apache.hc.client5.http.impl.cache.memcached 2 0 0 0 100% 0.003 s

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.apache.hc.client5.http.impl.schedule

- Class Tests Errors Failures Skipped Success Rate Time
TestExponentialBackingOffSchedulingStrategy 1 0 0 0 100% 0.001 s
TestImmediateSchedulingStrategy 1 0 0 0 100% 0.001 s

org.apache.hc.client5.http.schedule

- Class Tests Errors Failures Skipped Success Rate Time
TestConcurrentCountMap 1 0 0 0 100% 0.002 s

org.apache.hc.client5.http.cache

- Class Tests Errors Failures Skipped Success Rate Time
ManagedHttpCacheStorageTest 3 0 0 0 100% 0.006 s
TestHttpCacheEntry 20 0 0 0 100% 0.265 s
TestHttpCacheEntryFactory 13 0 0 0 100% 0.030 s

org.apache.hc.client5.http.impl.cache

- Class Tests Errors Failures Skipped Success Rate Time
TestHttpCacheJiraNumber1147 1 0 0 0 100% 0.004 s
TestCacheKeyGenerator 30 0 0 0 100% 0.011 s
TestCachingExecChain 40 0 0 0 100% 0.061 s
TestProtocolRequirements 132 0 0 0 100% 0.237 s
TestFileResourceFactory 1 0 0 0 100% 0.006 s
TestHttpByteArrayCacheEntrySerializer 13 0 0 0 100% 0.008 s
TestCacheableRequestPolicy 5 0 0 0 100% 0.001 s
TestResponseCacheConformance 5 0 0 0 100% 0.002 s
TestCacheSupport 1 0 0 0 100% 0.001 s
TestCacheValidityPolicy 27 0 0 0 100% 0.012 s
TestInternalCacheStorage 2 0 0 0 100% 0.001 s
CacheControlGeneratorTest 2 0 0 0 100% 0.003 s
TestConditionalRequestBuilder 15 0 0 0 100% 0.005 s
TestResponseCachingPolicy 93 0 0 0 100% 0.027 s
TestCacheRevalidatorBase 5 0 0 0 100% 0.019 s
CacheControlParserTest 23 0 0 0 100% 0.012 s
TestProtocolAllowedBehavior 1 0 0 0 100% 0.046 s
TestByteArrayCacheEntrySerializer 36 0 0 0 100% 0.034 s
TestCachedResponseSuitabilityChecker 24 0 0 0 100% 0.021 s
TestCachedHttpResponseGenerator 7 0 0 0 100% 0.021 s
TestProtocolRecommendations 67 0 0 0 100% 0.076 s
TestBasicHttpAsyncCache 29 0 0 0 100% 0.047 s
TestBasicHttpCache 29 0 0 0 100% 0.277 s
TestCombinedEntity 1 0 0 0 100% 0.035 s
TestAbstractSerializingAsyncCacheStorage 12 0 0 0 100% 0.044 s
TestAbstractSerializingCacheStorage 12 0 0 0 100% 0.038 s
TestRFC5861Compliance 6 0 0 0 100% 0.018 s
TestViaCacheGenerator 2 0 0 0 100% 0.004 s

org.apache.hc.client5.http.impl.cache.memcached

- Class Tests Errors Failures Skipped Success Rate Time
TestSHA256HashingScheme 1 0 0 0 100% 0.002 s
TestPrefixKeyHashingScheme 1 0 0 0 100% 0.001 s

Test Cases

[Summary] [Package List] [Test Cases]

TestHttpCacheJiraNumber1147

testIssue1147 0.004 s

TestCacheKeyGenerator

testIntermidateDotSegementsAreEquivalent 0.001 s
testGetURIWithQueryParameters 0 s
testEmptyPortEquivalentToDefaultPortForHttpsAbsoluteURI 0.001 s
testGetVariantKeyInputNormalization 0 s
testIntermidateDotDotSegementsAreEquivalent 0 s
testSchemeNameComparisonsAreCaseInsensitive 0.001 s
testExtraDotDotSegmentsAreIgnored 0 s
testExtraDotSegmentsAreIgnored 0 s
testGetVariantKey 0.001 s
testExtractsUriFromAbsoluteUriInRequest 0 s
testGetVariantKeyFromCachedResponse 0 s
testNotProvidedPortEquivalentToDefaultPortForHttp 0.001 s
testEmptyPortEquivalentToDefaultPortForHttp 0 s
testHostNameComparisonsAreCaseInsensitive 0 s
testIntermidateEncodedDotDotSegementsAreEquivalent 0 s
testNormalizeRequestUri 0 s
testEquivalentPathEncodingsAreEquivalent 0 s
testEquivalentExtraPathEncodingsWithPercentAreEquivalent 0.001 s
testEmptyPortEquivalentToDefaultPortForHttps 0 s
testGetURIWithDifferentScheme 0 s
testEquivalentExtraPathEncodingsAreEquivalent 0.001 s
testEmptyAbsPathIsEquivalentToSlash 0 s
testGetURIWithDefaultPortAndScheme 0 s
testGetURIWithDifferentPortAndScheme 0 s
testGetRequestUri 0.001 s
testNotProvidedPortEquivalentToDefaultPortForHttpsAbsoluteURI 0 s
testGetURIWithDifferentPort 0 s
testNormalizeHeaderElements 0.001 s
testGetVariantKeyInputNormalizationReservedChars 0.001 s
testGetVariantKeyInputNoMatchingHeaders 0 s

TestCachingExecChain

testReturns304ForIfNoneMatchPassesIfRequestServedFromOrigin 0.027 s
testNotModifiedResponseUpdatesCacheEntry 0.001 s
testVariantsMissServerReturns304CacheReturns304 0.001 s
testReturns304ForIfModifiedSinceHeaderIfRequestServedFromCache 0.001 s
testReturns304ForIfNoneMatchHeaderIfRequestServedFromCache 0.001 s
testIfOnlyIfCachedAndNoCacheEntryBackendNotCalled 0 s
testReturnssetStaleIfErrorNotEnabled 0.001 s
testNoCacheFieldsRevalidation 0.001 s
testSocketTimeoutExceptionIsNotSilentlyCatched 0.001 s
testTooLargeResponsesAreNotCached 0 s
testSetsModuleGeneratedResponseContextForCacheOptionsResponse 0 s
testReturns200ForIfNoneMatchHeaderFails 0.001 s
testSetsCacheMissContextIfRequestNotServableFromCache 0 s
testReturns200ForOptionsFollowedByGetIfAuthorizationHeaderAndSharedCache 0.001 s
testReturns304ForIfNoneMatchHeaderAndIfModifiedSinceIfRequestServedFromCache 0.001 s
testReturns200ForIfNoneMatchFailsIfRequestServedFromOrigin 0.001 s
testNewerCacheableResponsesReplaceExistingCacheEntry 0.001 s
testReturns200ForIfModifiedSinceDateIsInvalid 0.001 s
testSetsModuleResponseContextIfValidationFailsButNotRequired 0.001 s
testDoesNotSend304ForNonConditionalRequest 0.001 s
testNoEntityForIfNoneMatchRequestNotYetInCache 0 s
testSetsCacheHitContextIfRequestServedFromCache 0 s
testCanCacheAResponseWithoutABody 0.001 s
testSetsModuleResponseContextIfValidationRequiredButFailed 0.001 s
testUsesVirtualHostForCacheKey 0.001 s
testReturns304ForIfModifiedSinceHeaderIf304ResponseInCache 0.001 s
testVariantMissServerIfReturns304CacheReturns200 0.001 s
testReturns200ForIfModifiedSinceDateIsLess 0.001 s
testOlderCacheableResponsesDoNotGoIntoCache 0.001 s
testSmallEnoughResponsesAreCached 0 s
testNotModifiedResponseUpdatesCacheEntryWhenNoEntity 0.001 s
testNonCacheableResponseIsNotCachedAndIsReturnedAsIs 0 s
testReturns200ForIfNoneMatchHeaderFailsIfModifiedSinceIgnored 0.001 s
testCacheableResponsesGoIntoCache 0.001 s
testReturns304ForIfModifiedSinceHeaderIf304ResponseInCacheWithLastModified 0.001 s
testReturnssetStaleIfErrorEnabled 0 s
testNotModifiedResponseWithVaryUpdatesCacheEntryWhenNoEntity 0 s
testSetsValidatedContextIfRequestWasSuccessfullyValidated 0.001 s
testReturns200ForIfModifiedSinceFailsIfRequestServedFromOrigin 0.001 s
testReturns304ForIfModifiedSincePassesIfRequestServedFromOrigin 0.001 s

TestConcurrentCountMap

testBasics 0.001 s

ManagedHttpCacheStorageTest

cacheDisableThrowsIllegalStateException 0.002 s
isActive 0.001 s
putEntry 0.001 s

TestProtocolRequirements

testSharedCacheMayCacheAuthorizedResponsesWithCacheControlPublic 0.004 s
testGenerates504IfCannotRevalidateAMustRevalidateEntry 0.002 s
testResponsesToTRACEsAreNotCached 0 s
testOrderOfMultipleContentEncodingHeadersIsPreservedOnResponses 0.001 s
testOrderOfMultipleAllowHeadersIsPreservedOnResponses 0.001 s
testConditionalRequestWhereAllValidatorsMatchMayBeServedFromCache 0.001 s
testDoesNotModifyContentMD5HeaderOnRequest 0 s
testDoesNotAddContentLocationToRequestIfNotPresent 0.001 s
testValidationMustUseETagIfProvidedByOriginServer 0.001 s
testTransmitsAgeHeaderIfIncomingAgeHeaderTooBig 0.001 s
testDoesNotAddEtagToOriginResponse 0 s
testCacheIsNotUsedWhenRespondingToRequestWithCacheControlNoCache 0.001 s
test304ResponseGeneratedFromCacheIncludesExpiresCacheControlAndOrVaryIfResponseMightDiffer 0.002 s
testDoesNotAddContentTypeHeaderToCachedResponseWithNoTransformIfNotPresent 0.001 s
testDoesNotAddContentTypeToRequestIfNotPresent 0.001 s
testUnknownHeadersOnResponsesAreForwarded 0.002 s
testDoesNotAddLastModifiedToRequestIfNotPresent 0.001 s
testDoesNotModifyServerResponseHeader 0.001 s
testDoesNotAddContentEncodingHeaderToCachedResponseWithNoTransformIfNotPresent 0 s
testDELETERequestsAreWrittenThroughToOrigin 0.001 s
testPostInvalidatesCacheForThatUriInContentLocationHeader 0.001 s
testDoesNotAddContentTypeHeaderToRequestIfNotPresent 0.001 s
testNoStoreOnResponseIsNotStoredInCache 0.001 s
test302ResponseWithoutExplicitCacheabilityIsNotReturnedFromCache 0.001 s
testSharedCacheMustUseNewRequestHeadersWhenRevalidatingAuthorizedResponsesWithMustRevalidate 0.001 s
testCacheMissOnGETUsesOriginResponse 0.001 s
testDoesNotModifyContentLocationHeaderOnRequest 0 s
test304ResponseGeneratedFromCacheIncludesContentLocationIfOriginResponseDid 0 s
testDeleteInvalidatesCacheForThatUriInLocationHeader 0.001 s
testOrderOfMultipleWWWAuthenticateHeadersIsPreservedOnResponses 0.001 s
testCONNECTRequestsAreWrittenThroughToOrigin 0 s
testCachedResponsesWithMissingDateHeadersShouldBeAssignedOne 0.001 s
testExpiresHeaderEqualToDateHeaderIsTreatedAsStale 0.002 s
testNonMatchingVariantCannotBeServedFromCacheUnlessConditionallyValidated 0.001 s
testExpiresHeaderMatchesDateIfAddedToOriginResponse 0.001 s
testNoCacheOnFieldIsNotReturnedWithoutRevalidation 0.002 s
testCacheControlPrivateIsNotCacheableBySharedCache 0.001 s
testSharedCacheMustRevalidateAuthorizedResponsesWhenSMaxAgeIsZero 0.001 s
testMultiHeadersAreSuccessfullyReplacedOn304Validation 0.001 s
testResponsesToPUTsAreNotCached 0.001 s
testCacheWithoutSupportForRangeAndContentRangeHeadersDoesNotCacheA206Response 0 s
testNoStoreOnResponseIsNotStoredInCacheEvenWithContraryIndicators 0 s
testDoesNotModifyContentLocationHeaderFromOrigin 0.001 s
testOrderOfMultipleViaHeadersIsPreservedOnResponses 0 s
testNoCacheCannotSatisfyASubsequentRequestWithoutRevalidationEvenWithContraryIndications 0.001 s
testDoesNotAddContentRangeHeaderToCachedResponseWithNoTransformIfNotPresent 0 s
testOrderOfMultipleContentEncodingHeaderValuesIsPreserved 0.001 s
testDoesNotAddContentMD5ToRequestIfNotPresent 0.001 s
testDoesNotModifyContentEncodingHeaderOnCachedResponseWithNoTransform 0.001 s
testDoesNotModifyAllowHeaderWithUnknownMethods 0 s
testStaleEntryWithMustRevalidateIsNotUsedWithoutRevalidatingWithOrigin 0.001 s
testOrderOfMultipleCacheControlHeadersIsPreservedOnResponses 0.001 s
testSharedCacheMustUseNewRequestHeadersWhenRevalidatingAuthorizedResponsesWithSMaxAge 0.001 s
testPutInvalidatesCacheForThatUriInRelativeContentLocationHeader 0.001 s
testNoStoreOnRequestIsNotStoredInCacheEvenIfResponseMarkedCacheable 0.001 s
testMustReturnAFreshEnoughCacheEntryIfItHasIt 0.001 s
testDoesNotModifyContentLocationFromOriginOnCacheHit 0 s
testPutInvalidatesCacheForThatUriInLocationHeader 0.002 s
testUnknownHeadersOnRequestsAreForwarded 0.001 s
testDoesNotModifyLastModifiedFromOriginOnCacheHit 0.001 s
testDoesNotAddContentRangeHeaderToRequestIfNotPresent 0 s
testDoesNotModifyContentMD5HeaderFromOrigin 0 s
testResponsesToDELETEsAreNotCached 0.001 s
testConditionalRequestWhereNotAllValidatorsMatchCannotBeServedFromCache 0.002 s
testDoesNotModifyExpiresHeaderFromOrigin 0 s
testExpiresZeroHeaderIsTreatedAsStale 0 s
testUnknownResponseStatusCodesAreNotCached 0.107 s
testDoesNotAddContentRangeToRequestIfNotPresent 0.001 s
testDoesNotAddContentLocationToOriginResponse 0.001 s
testDoesNotAddContentMD5ToOriginResponse 0.001 s
testDoesNotAddETagHeaderOnCacheHit 0.001 s
testAgeHeaderPopulatedFromCacheEntryCurrentAge 0.001 s
test304ResponseGeneratedFromCacheIncludesEtagIfOriginResponseDid 0.006 s
testPOSTRequestsAreWrittenThroughToOrigin 0 s
testGenerates504IfSharedCacheCannotRevalidateAProxyRevalidateEntry 0 s
testDoesNotModifyETagHeaderOnRequest 0 s
testPUTRequestsAreWrittenThroughToOrigin 0.001 s
testMalformedExpiresHeaderIsTreatedAsStale 0 s
testDoesNotAddETagToRequestIfNotPresent 0 s
test304ResponseGeneratedFromCacheIncludesDateHeader 0.001 s
testSharedCacheMayCacheAuthorizedResponsesWithMustRevalidate 0.002 s
testStaleEntryWithProxyRevalidateOnSharedCacheIsNotUsedWithoutRevalidatingWithOrigin 0.001 s
testCannotServeFromCacheForVaryStar 0.001 s
testDoesNotAddContentTypeHeaderToOriginResponseWithNoTransformIfNotPresent 0 s
testPutInvalidatesCacheForThatUriInContentLocationHeader 0.001 s
testUnknownMethodRequestsAreWrittenThroughToOrigin 0 s
testDeleteInvalidatesCacheForThatUriInRelativeContentLocationHeader 0 s
test304GeneratedFromCacheOnWeakValidatorDoesNotIncludeOtherEntityHeaders 0.001 s
testDoesNotAddContentEncodingHeaderToOriginResponseWithNoTransformIfNotPresent 0.001 s
testDoesNotModifyContentTypeHeaderFromOriginResponseWithNoTransform 0.001 s
testOrderOfMultipleContentLanguageHeadersIsPreservedOnResponses 0 s
testDoesNotAddLastModifiedToOriginResponse 0.001 s
testDeleteToUriInvalidatesCacheForThatUri 0.001 s
testDoesNotModifyLastModifiedHeaderFromOrigin 0 s
testUpdatedEndToEndHeadersFrom304ArePassedOnResponseAndUpdatedInCacheEntry 0.002 s
testDoesNotModifyContentMD5FromOriginOnCacheHit 0 s
testPostInvalidatesCacheForThatUriInLocationHeader 0.001 s
testDoesNotAddContentLocationHeaderOnCacheHit 0.001 s
testDoesNotAddContentMD5HeaderOnCacheHit 0.001 s
testPostToUriInvalidatesCacheForThatUri 0 s
testCachedEntityBodyIsUsedForResponseAfter304Validation 0.001 s
testOPTIONSRequestsAreWrittenThroughToOrigin 0.001 s
testMustReturnACacheEntryIfItCanRevalidateIt 0.001 s
testNoStoreOnRequestIsNotStoredInCache 0 s
testPostInvalidatesCacheForRelativeUriInContentLocationHeader 0 s
testDoesNotModifyContentEncodingHeaderFromOriginResponseWithNoTransform 0.001 s
testDoesNotModifyContentRangeHeaderFromOriginResponseWithNoTransform 0 s
testDoesNotAddContentEncodingHeaderToRequestIfNotPresent 0.001 s
testNotModifiedOfNonCachedEntityShouldRevalidateWithUnconditionalGET 0.001 s
testCacheControlPrivateOnFieldIsNotReturnedBySharedCache 0.001 s
testDoesNotModifyExpiresHeaderFromOriginOnCacheHit 0.001 s
testCacheEntryIsUpdatedWithNewFieldValuesIn304Response 0.001 s
testDoesNotModifyContentTypeHeaderOnCachedResponseWithNoTransform 0.001 s
testDoesNotAddContentEncodingToRequestIfNotPresent 0 s
testNoCacheCannotSatisfyASubsequentRequestWithoutRevalidation 0.001 s
testDoesNotModifyLastModifiedHeaderOnRequest 0 s
testResponsesToPOSTWithoutCacheControlOrExpiresAreNotCached 0.001 s
testDoesNotModifyEtagFromOriginOnCacheHit 0 s
testTRACERequestsAreWrittenThroughToOrigin 0.001 s
testPutToUriInvalidatesCacheForThatUri 0.001 s
testDeleteInvalidatesCacheForThatUriInContentLocationHeader 0.001 s
testResponsesToOPTIONSAreNotCacheable 0 s
testCannotUseVariantCacheEntryIfNotAllSelectingRequestHeadersMatch 0.001 s
testOrderOfMultipleParametersInContentEncodingHeaderIsPreserved 0 s
testDoesNotAddLastModifiedHeaderOnCacheHit 0.001 s
testSharedCacheMustNotNormallyCacheAuthorizedResponses 0 s
testKeepsMostRecentDateHeaderForFreshResponse 0.001 s
testDoesNotModifyEtagHeaderFromOrigin 0.001 s
testSharedCacheMayCacheAuthorizedResponsesWithSMaxAgeHeader 0 s
testDoesNotAddContentRangeHeaderToOriginResponseWithNoTransformIfNotPresent 0.001 s
testCacheDoesNotAssumeContentLocationHeaderIndicatesAnotherCacheableResource 0.001 s
testResponseIncludesCacheEntryEndToEndHeadersForResponseAfter304Validation 0.001 s

TestFileResourceFactory

testViaValueLookup 0.004 s

TestHttpByteArrayCacheEntrySerializer

testInvalidStatusLineCacheEntry 0 s
noBodyTest 0.001 s
testSerializeAndDeserializeLargeContent 0 s
emptyBodyTest 0.001 s
testInvalidRequestLineCacheEntry 0 s
testInvalidCacheEntry 0.001 s
testInvalidHeaderCacheEntry 0 s
testDeserializeCacheEntryWithTrailingGarbage 0.001 s
testTruncatedCacheEntry 0.001 s
testMissingHeaderCacheEntry 0.001 s
testSimpleSerializeAndDeserialize 0 s
testSimpleVariantMap 0 s
noHeadersTest 0 s

TestCacheableRequestPolicy

testIsGetServableFromCache 0 s
testIsHeadServableFromCache 0.001 s
testIsGetWithCacheControlServableFromCache 0 s
testIsHeadWithCacheControlServableFromCache 0 s
testIsArbitraryMethodServableFromCache 0 s

TestExponentialBackingOffSchedulingStrategy

testSchedule 0 s

TestHttpCacheEntry

testMissingDateHeaderIsIgnored 0.219 s
testGetHeadersReturnsEmptyArrayIfNoneMatch 0.002 s
testGetHeadersReturnsCorrectHeaders 0.001 s
statusCodeComesFromOriginalStatusLine 0 s
testGetMethodReturnsCorrectRequestMethod 0.001 s
canGetOriginalRequestDate 0 s
testDateParsedOnce 0.008 s
canRetrieveOriginalVariantMap 0.001 s
canGetOriginalResource 0 s
retrievedVariantMapIsNotModifiable 0.001 s
testIsCacheEntryNewer 0.001 s
testGetFirstHeaderReturnsNullIfNoneMatch 0.001 s
testGetFirstHeaderReturnsCorrectHeader 0 s
testEpochDateHeaderIsParsed 0 s
canGetOriginalResponseDate 0 s
canConvertToString 0.006 s
testMalformedDateHeaderIsIgnored 0.001 s
testValidDateHeaderIsParsed 0.001 s
testExpiresParsedOnce 0 s
canGetOriginalHeaders 0 s

TestResponseCacheConformance

shouldStripContentLengthFromOrigin304ResponseToStrongValidation 0.001 s
shouldStripContentEncodingFromOrigin304ResponseToStrongValidation 0 s
shouldStripContentTypeFromOrigin304ResponseToStrongValidation 0 s
shouldStripContentMD5FromOrigin304ResponseToStrongValidation 0 s
shouldStripContentLanguageFromOrigin304ResponseToStrongValidation 0 s

TestCacheSupport

testParseDeltaSeconds 0 s

TestCacheValidityPolicy

testFreshnessLifetimeIsSMaxAgeIfPresent 0.001 s
testFreshnessLifetimeIsMaxAgeEvenIfExpiresIsPresent 0 s
testApparentAgeIsMaxIntIfDateHeaderNotPresent 0.001 s
testMalformedAgeHeaderOverflow 0.001 s
testHeuristicFreshnessLifetime 0.001 s
testGetCorrectedAgeValue 0 s
testCorrectedReceivedAgeIsAgeHeaderIfLarger 0 s
testMalformedAgeHeaderMultiplesMalformedAges 0 s
testNegativeAgeHeaderValueReturnsZero 0 s
testResponseDelayIsDifferenceBetweenResponseAndRequestTimes 0.001 s
testFreshnessLifetimeUsesSharedMaxAgeInSharedCache 0 s
testHeuristicFreshnessLifetimeCustomProperly 0.001 s
testFreshnessLifetimeUsesMaxAgeWhenSharedMaxAgeNotPresent 0 s
testHeuristicFreshnessLifetimeDefaultsProperly 0.001 s
testSMaxAgeIsIgnoredWhenNotShared 0 s
testCorrectedInitialAgeIsCorrectedReceivedAgePlusResponseDelay 0.001 s
testHeuristicFreshnessLifetimeIsNonNegative 0 s
testMalformedAgeHeaderValueReturnsMaxAge 0 s
testFreshnessLifetimeIsMaxAgeIfPresent 0.001 s
testMalformedAgeHeaderNegativeAge 0 s
testResidentTimeSecondsIsTimeSinceResponseTime 0 s
testCurrentAgeIsCorrectedInitialAgePlusResidentTime 0 s
testApparentAgeIsResponseReceivedTimeLessDateHeader 0.001 s
testFreshnessLifetimeIsFromExpiresHeaderIfNoMaxAge 0 s
testMalformedAgeHeaderMultipleWellFormedAges 0 s
testFreshnessLifetimeIsSMaxAgeEvenIfExpiresIsPresent 0 s
testNegativeApparentAgeIsBroughtUpToZero 0 s

TestInternalCacheStorage

testCacheBasics 0 s
testCacheEviction 0 s

CacheControlGeneratorTest

testGenerateRequestCacheControlHeader 0.002 s
testGenerateRequestCacheControlHeaderNoDirectives 0.001 s

TestConditionalRequestBuilder

testCacheEntryWithProxyRevalidateDoesEndToEndRevalidation 0.001 s
testBuildConditionalRequestWithLastModified 0 s
testBuildUnconditionalRequestDoesNotUseIfMatch 0 s
testBuildUnconditionalRequestDoesNotUseIfRange 0 s
testBuildUnconditionalRequestDoesNotUseIfUnmodifiedSince 0 s
testConditionalRequestForEntryWithLastModifiedAndEtagIncludesBothAsValidators 0 s
testBuildUnconditionalRequestAddsCacheControlNoCache 0 s
testBuildUnconditionalRequestCarriesOtherRequestHeaders 0 s
testBuildUnconditionalRequestUsesRequestUri 0 s
testBuildConditionalRequestWithETag 0.001 s
testBuildUnconditionalRequestDoesNotUseIfNoneMatch 0 s
testBuildUnconditionalRequestUsesGETMethod 0 s
testBuildUnconditionalRequestDoesNotUseIfModifiedSince 0 s
testBuildConditionalRequestFromVariants 0.001 s
testCacheEntryWithMustRevalidateDoesEndToEndRevalidation 0 s

TestResponseCachingPolicy

testPublicWithAuthorizationIsCacheable 0.001 s
testHeadCacheable 0 s
testPlain303ResponseCodeIsNotCacheableEvenIf303CachingEnabled 0 s
testPlain303ResponseCodeIsNotCacheableUnderDefaultBehavior 0 s
testIsArbitraryMethodCacheableUsingSharedPublicCache 0 s
testResponsesToGETWithQueryParamsAndExplicitCachingAreCacheable 0.001 s
test410ResponseCodeIsCacheable 0 s
test206ResponseCodeIsNotCacheable 0 s
testNon206WithSMaxAgeIsCacheable 0 s
testIsResponseCacheableNotExsiresAndDate 0 s
testNon206WithPrivateCacheControlIsNotCacheableBySharedCache 0 s
testControlNoCacheCacheable 0 s
testIsResponseCacheable 0.001 s
testControlNoCacheEmbeddedInListCacheable 0 s
headsWithQueryParametersFrom1_0OriginsViaExplicitProxiesCanNotBeCacheableEvenWithExpires 0 s
getsWithQueryParametersFrom1_0OriginsViaProxiesAreCacheableWithExpires 0 s
testResponsesWithMultipleExpiresHeadersAreNotCacheable 0 s
headsWithQueryParametersDirectlyFrom1_0OriginsAreCacheableWithExpires 0.001 s
testVaryStarIsNotCacheableUsingSharedPublicCache 0 s
testAuthorizedResponsesWithCacheControlPublicAreCacheable 0 s
testPlain302ResponseCodeIsNotCacheable 0 s
testResponsesToHEADWithQueryParamsAndExplicitCachingAreCacheable 0 s
notCacheableIfExpiresPrecedesDateAndNoCacheControl 0 s
headsWithQueryParametersFrom1_0OriginsViaProxiesAreNotCacheable 0 s
testSMaxageWithAuthorizationIsCacheable 0.001 s
test302WithExplicitCachingHeaders 0 s
test303WithExplicitCachingHeadersWhenPermittedByConfig 0 s
testResponsesToHEADWithQueryParamsButNoExplicitCachingAreNotCacheableEvenWhen1_0QueryCachingDisabled 0 s
headsWithQueryParametersFrom1_0OriginsViaProxiesCanNotBeCacheableEvenWithExpires 0 s
testResponsesWithMalformedDateHeadersAreNotCacheableUsingSharedPublicCache 0 s
notCacheableIfExpiresEqualsDateAndNoCacheControl 0 s
testMissingCacheControlHeader 0 s
testControlNoCacheEmbeddedInListAfterFirstHeaderCacheable 0 s
testMustRevalidateWithAuthorizationIsCacheable 0 s
testResponsesToHEADWithQueryParamsButNoExplicitCachingAreNotCacheable 0 s
testPlain307ResponseCodeIsNotCacheable 0.001 s
getsWithQueryParametersDirectlyFrom1_0OriginsAreNotCacheable 0 s
testControlNoStoreEmbeddedInListAfterFirstHeaderCacheable 0 s
test307WithExplicitCachingHeaders 0 s
testResponsesToRequestsWithAuthorizationHeadersAreCacheableByNonSharedCache 0 s
testNon206WithMustRevalidateIsCacheable 0 s
getsWithQueryParametersDirectlyFrom1_0OriginsAreNotCacheableEvenWithSetting 0 s
testResponsesWithMalformedDateHeadersAreNotCacheable 0.001 s
testResponsesWithMultipleDateHeadersAreNotCacheableUsingSharedPublicCache 0 s
testControlAnyCacheControlCacheable 0 s
testResponsesWithMultipleAgeHeadersAreNotCacheableUsingSharedPublicCache 0 s
testResponsesWithMultipleExpiresHeadersAreNotCacheableUsingSharedPublicCache 0.001 s
headsWithQueryParametersFrom1_0OriginsViaExplicitProxiesAreCacheableWithExpires 0 s
testResponsesToRequestsWithAuthorizationHeadersAreNotCacheableBySharedCache 0 s
testResponsesWithMultipleAgeHeadersAreCacheable 0 s
getsWithQueryParametersDirectlyFrom1_0OriginsAreCacheableWithExpires 0 s
testResponsesToHEADWithQueryParamsAndExplicitCachingAreCacheableEvenWhen1_0QueryCachingDisabled 0 s
headsWithQueryParametersFrom1_0OriginsViaProxiesAreCacheableWithExpires 0 s
test203ResponseCodeIsCacheable 0.001 s
test301ResponseCodeIsCacheable 0 s
testNon206WithExplicitExpiresIsCacheable 0 s
headsWithQueryParametersDirectlyFrom1_0OriginsCanBeNotCacheableEvenWithExpires 0 s
testResponsesWithMultipleDateHeadersAreNotCacheable 0 s
testImmutableAndFreshResponseIsCacheable 0 s
test300ResponseCodeIsCacheable 0 s
testNon206WithMaxAgeIsCacheable 0.001 s
testControlWithout200Cacheable 0 s
testResponsesToGETWithQueryParamsAndExplicitCachingAreCacheableEvenWhen1_0QueryCachingDisabled 0 s
testGetCacheable 0 s
getsWithQueryParametersFrom1_0OriginsViaProxiesCanNotBeCacheableEvenWithExpires 0.001 s
testArbitraryMethodNotCacheable 0 s
test200ResponseWithPrivateCacheControlIsCacheableByNonSharedCache 0 s
testAuthorizedResponsesWithCacheControlMaxAgeAreNotCacheable 0 s
getsWithQueryParametersFrom1_0OriginsViaExplicitProxiesCanNotBeCacheableEvenWithExpires 0.001 s
getsWithQueryParametersDirectlyFrom1_0OriginsCanBeNotCacheableEvenWithExpires 0 s
headsWithQueryParametersFrom1_1OriginsVia1_0ProxiesAreCacheableWithExpires 0 s
testControlNoStoreEmbeddedInListCacheable 0 s
testResponsesToGETWithQueryParamsButNoExplicitCachingAreNotCacheableEvenWhen1_0QueryCachingDisabled 0.001 s
getsWithQueryParametersFrom1_1OriginsVia1_0ProxiesAreCacheableWithExpires 0 s
testIsResponseCacheableNoCache 0 s
testIsResponseCacheableNoStore 0 s
testAuthorizedResponsesWithSMaxAgeAreCacheable 0 s
testRequestWithVaryHeaderCacheable 0 s
getsWithQueryParametersFrom1_0OriginsViaProxiesAreNotCacheable 0 s
testResponsesThatAreSmallEnoughAreCacheable 0 s
testIsResponseCacheableNotNullCacheControlMaxAge60 0 s
testNon206WithPublicCacheControlIsCacheable 0 s
testIsResponseCacheableNotNullCacheControlSmaxAge60 0 s
getsWithQueryParametersFrom1_0OriginsViaExplicitProxiesAreCacheableWithExpires 0.001 s
testControlNoStoreNotCacheable 0 s
testVaryStarIsNotCacheable 0 s
testNoDirectivesWithAuthorizationNotCacheable 0 s
testNon206WithProxyRevalidateIsCacheable 0.001 s
testIsResponseCacheableNullCacheControl 0 s
testResponsesToGETWithQueryParamsButNoExplicitCachingAreNotCacheable 0 s
otherStatusCodesAreCacheableWithExplicitCachingHeaders 0 s
headsWithQueryParametersDirectlyFrom1_0OriginsAreNotCacheable 0 s
headsWithQueryParametersDirectlyFrom1_0OriginsAreNotCacheableEvenWithSetting 0 s

TestCacheRevalidatorBase

testRevalidateCacheEntryProperlyCollapsesRequest 0.015 s
testRevalidateCacheEntrySchedulesExecutionAndPopulatesIdentifier 0.001 s
testRevalidateCacheEntryDoesNotPopulateIdentifierOnRejectedExecutionException 0.002 s
testShutdown 0 s
testMarkCompleteRemovesIdentifier 0.001 s

CacheControlParserTest

testParseNoCacheFields 0 s
testParseMultipleDirectives2 0.001 s
testParseMultipleIsImmutable 0.001 s
testParseMultipleDirectives 0 s
testParsePublic 0.001 s
testParsePrivate 0 s
testParseMaxAgeZero 0 s
testParseCookieEmptyValue 0 s
testParseNoDirective 0.001 s
testParseNoCacheFieldsNoQuote 0 s
testParseEmptyHeader 0 s
testGarbage 0 s
testParseStaleWhileRevalidate 0.001 s
testParseInvalidHeader 0 s
testParseInvalidCacheValue 0 s
testParseSMaxAge 0 s
testParseMultipleHeaders 0.001 s
testParseNullHeader 0.001 s
testParseNoCacheFieldsMessy 0 s
testParseRequestMultipleDirectives 0.002 s
testParseNoCache 0 s
testParseNoStore 0.001 s
testParseIsImmutable 0 s

TestProtocolAllowedBehavior

testNonSharedCacheMayCacheResponsesWithCacheControlPrivate 0.046 s

TestByteArrayCacheEntrySerializer

isAllowedClassNameStringTrue 0.002 s
isAllowedClassNameCalanTemplatesImplFalse 0.001 s
canSerializeEntriesWithVariantMapsAndInstant 0.009 s
isAllowedClassNameJavaxXmlTransformTemplatesFalse 0.001 s
isAllowedClassNameFloatArrayArrayTrue 0 s
isAllowedClassNameIntArrayArrayTrue 0 s
isAllowedClassNameShortArrayTrue 0.001 s
isAllowedClassNameJavaxManagementMBeanServerInvocationHandlerFalse 0 s
isAllowedClassNameResourceTrue 0.001 s
isAllowedClassNameLongArrayTrue 0 s
isAllowedClassNameIntArrayTrue 0.001 s
isAllowedClassNameDoubleArrayTrue 0 s
isAllowedClassNameCollectionsInvokerTransformerFalse 0.001 s
isAllowedClassNameInstantTrue 0 s
isAllowedClassNameDataTrue 0.001 s
canSerializeEntriesWithVariantMapsDeprecatedConstructor 0.002 s
isAllowedClassNameJavaRmiServerRemoteObjectInvocationHandlerFalse 0.001 s
isAllowedClassNameStringArrayTrue 0 s
isAllowedClassNameGroovyMethodClosureFalse 0.001 s
isAllowedClassNameShortArrayArrayTrue 0 s
isAllowedClassNameGroovyConvertedClosureFalse 0.001 s
isAllowedClassNameLongArrayArrayTrue 0 s
isAllowedClassNameFloatArrayTrue 0 s
isAllowedClassNameCharArrayTrue 0 s
isAllowedClassNameByteArrayArrayTrue 0.001 s
isAllowedClassNameJavaRmiRegistryFalse 0 s
isAllowedClassNameCollectionsInstantiateTransformerFalse 0.001 s
isAllowedClassNameCalanTemplatesImplArrayFalse 0 s
isAllowedClassNameStringArrayArrayTrue 0.001 s
isAllowedClassNameCollections4InstantiateTransformerFalse 0 s
isAllowedClassNameByteArrayTrue 0.001 s
isAllowedClassNameStatusLineTrue 0 s
isAllowedClassNameSpringObjectFactoryFalse 0 s
isAllowedClassNameCharArrayArrayTrue 0.001 s
isAllowedClassNameDoubleArrayArrayTrue 0 s
isAllowedClassNameCollections4InvokerTransformerFalse 0 s

TestCachedResponseSuitabilityChecker

testRequestMethodMatch 0.001 s
testNotSuitableIfStaleButTooStaleForRequestMaxStale 0.001 s
testNotSuitableIfRequestHasNoCache 0 s
testNotSuitableIfAgeExceedsRequestMaxAge 0.001 s
testResponseNoCache 0 s
testSuitableIfRequestMethodisHEAD 0.001 s
testSuitableIfFreshAndFreshnessLifetimeGreaterThanRequestMinFresh 0.001 s
testNotSuitableIfFreshnessLifetimeLessThanRequestMinFresh 0 s
testNotSuitableIfGetRequestWithHeadCacheEntry 0.001 s
testSuitableIfErrorResponseCacheControl 0 s
testNotSuitableIfCacheEntryIsNotFresh 0.001 s
testSuitableForGETIfHeadResponseCachingEnabledAndEntryDoesNotSpecifyARequestMethodButContains204Response 0 s
testSuitableIfErrorConfigDefault 0.001 s
testSuitableIfCacheEntryIsHeuristicallyFreshEnoughByDefault 0 s
testSuitableEvenIfStaleButPermittedByRequestMaxStale 0.001 s
testRequestHeadersMatch 0.004 s
testSuitableIfErrorRequestCacheControl 0.001 s
testSuitableIfErrorRequestCacheControlTakesPrecedenceOverResponseCacheControl 0.001 s
testSuitableIfFreshAndAgeIsUnderRequestMaxAge 0.001 s
testRequestUriMatch 0 s
testSuitableForGETIfEntryDoesNotSpecifyARequestMethodButContainsEntity 0 s
testSuitableIfCacheEntryIsHeuristicallyFreshEnough 0.001 s
testSuitableForHEADIfHeadResponseCachingEnabledAndEntryDoesNotSpecifyARequestMethod 0 s
testSuitableIfCacheEntryIsFresh 0.001 s

TestCachedHttpResponseGenerator

testAgeHeaderIsNotPopulatedIfCurrentAgeOfCacheEntryIsZero 0.018 s
testAgeHeaderIsPopulatedWithCurrentAgeOfCacheEntryIfNonZero 0.001 s
testResponseDoesNotContainEntityToServeHEADRequestIfEntryContainsResource 0.001 s
testResponseStatusCodeMatchesCacheEntry 0 s
testResponseContainsEntityToServeGETRequestIfEntryContainsResource 0 s
testResponseHasContentLength 0 s
testAgeHeaderIsPopulatedWithMaxAgeIfCurrentAgeTooBig 0 s

TestProtocolRecommendations

testDoesNotModifyLocationOnResponses 0.001 s
testUsesBothLastModifiedAndETagForConditionalRequestsIfAvailable 0.002 s
testRevalidatesCachedResponseWithExpirationInThePast 0.002 s
returns504ForStaleEntryWithOnlyIfCached 0.002 s
testDoesNotModifyExtensionHeaderOnResponses 0.001 s
testDoesNotModifyAcceptRangesOnResponses 0.001 s
cacheGenerated304ForStrongValidatorShouldNotContainContentMD5 0.001 s
testDoesNotModifyIfNoneMatchOnRequests 0 s
testDoesNotModifyContentTypeOnRequests 0 s
testDoesNotReturnStaleResponseIfClientExplicitlyRequestsFirstHandOneWithCacheControl 0.001 s
cacheGenerated304ForStrongDateValidatorShouldNotContainContentLanguage 0.001 s
testDoesNotModifyRefererOnRequests 0.001 s
testResponseToExistingVariantsUpdatesEntry 0.002 s
testDoesNotModifyContentRangeOnResponses 0.001 s
issues304EvenWithWeakETag 0.001 s
cacheGenerated304ForStrongDateValidatorShouldNotContainContentType 0.001 s
testDoesNotModifyExtensionHeaderOnRequests 0 s
cacheGenerated304ForStrongEtagValidatorShouldNotContainContentEncoding 0 s
testDoesNotModifyIfModifiedSinceOnRequests 0.001 s
testDoesNotReturnStaleResponseIfClientExplicitlyRequestsFreshWithMaxAge 0.001 s
testDoesNotModifyContentLengthOnRequests 0.001 s
testDoesNotReturnStaleResponseIfClientExplicitlyRequestsFreshWithMaxStale 0.001 s
testUsesLastModifiedDateForCacheConditionalRequests 0.001 s
testDoesNotModifyIfRangeOnRequests 0.001 s
cacheGenerated304ForStrongEtagValidatorShouldNotContainContentType 0.001 s
testDoesNotModifyContentLengthOnResponses 0.001 s
cacheGenerated304ForStrongEtagValidatorShouldNotContainAllow 0.001 s
shouldInvalidateAllVariantsForUnknownMethod 0.003 s
cacheGenerated304ForStrongEtagValidatorShouldNotContainContentLanguage 0.001 s
cacheGenerated304ForStrongDateValidatorShouldNotContainContentLength 0.001 s
testDoesNotModifyUserAgentOnRequests 0.001 s
cacheHitOkWithOnlyIfCached 0.001 s
expiresPriorToDateWithNoCacheControlIsNotCacheable 0.001 s
cacheMissResultsIn504WithOnlyIfCached 0 s
testDoesNotModifyExpiresOnResponses 0 s
testMayReturnStaleResponseIfClientExplicitlySpecifiesAcceptableMaxStale 0.001 s
testDoesNotModifyServerOnResponses 0.001 s
testDoesNotModifyContentTypeOnResponses 0.001 s
cacheGenerated304ForStrongValidatorShouldNotContainContentLength 0.001 s
shouldInvalidateNonvariantCacheEntryForUnknownMethod 0.002 s
cacheGenerated304ForStrongDateValidatorShouldNotContainContentMD5 0.001 s
testDoesNotModifyDateOnRequests 0.001 s
testDoesNotModifyAuthorizationOnRequests 0 s
returnsStaleCacheEntryWithOnlyIfCachedAndMaxStale 0 s
testDoesNotModifyRetryAfterOnResponses 0.001 s
testDoesNotModifyFromOnRequests 0.001 s
testDoesNotModifyContentRangeOnRequests 0 s
expiresEqualToDateWithNoCacheControlIsNotCacheable 0.001 s
testDoesNotModifyDateOnResponses 0.001 s
testRetriesValidationThatResultsInAnOlderDated304Response 0.001 s
testDoesNotModifyIfUnmodifiedSinceOnRequests 0.001 s
cacheGenerated304ForStrongEtagValidatorShouldNotContainLastModified 0 s
testDoesNotModifyVaryOnResponses 0 s
cacheGenerated304ForStrongDateValidatorShouldNotContainAllow 0.001 s
testResponseToExistingVariantsIsCachedForFutureResponses 0.001 s
testSendsAllVariantEtagsInConditionalRequest 0.002 s
testDoesNotModifyContentMD5OnRequests 0 s
testDoesNotModifyLastModifiedOnResponses 0.001 s
testDoesNotModifyIfMatchOnRequests 0.001 s
testDoesNotReturnStaleResponseIfClientExplicitlySpecifiesLargerMaxAge 0.001 s
cacheGenerated304ForStrongDateValidatorShouldNotContainContentEncoding 0.001 s
cacheGenerated304ForStrongDateValidatorShouldNotContainLastModified 0.001 s
cacheShouldUpdateWithNewCacheableResponse 0.001 s
testDoesNotReturnStaleResponseIfClientExplicitlyRequestsFreshWithMinFresh 0.001 s
testDoesNotModifyRangeOnRequests 0.001 s
testDoesNotModifyContentMD5OnResponses 0.001 s
testDoesNotModifyETagOnResponses 0.001 s

TestBasicHttpAsyncCache

testDoesNotInvalidateUriSpecifiedByContentLocationIfEtagsMatch 0.015 s
testInvalidateUriSpecifiedByContentLocationNonCanonical 0.002 s
testStoreFromNegotiatedVariant 0.003 s
testInvalidateUriSpecifiedByContentLocationRelative 0.001 s
testInvalidatesUnsafeRequests 0.001 s
testDoesNotInvalidateUriSpecifiedByContentLocationOtherOrigin 0 s
testDoesNotInvalidateUriSpecifiedByContentLocationIfOlder 0.001 s
testGetVariantCacheEntriesReturnsAllVariants 0.003 s
testInvalidatesUriSpecifiedByContentLocationIfResponseHasMalformedDate 0.002 s
testInvalidateUriSpecifiedByLocationAndFresher 0.001 s
testDoesNotInvalidateForUnsuccessfulResponse 0.001 s
testUpdateCacheEntryTurnsVariant 0.001 s
testInvalidateUriSpecifiedByContentLocationAndFresher 0.001 s
testGetCacheEntryReturnsNullIfNoVariantInCache 0.001 s
testInvalidatesUriSpecifiedByContentLocationIfResponseHasNoDate 0.001 s
testGetCacheEntryReturnsVariantWithMostRecentDateHeader 0.001 s
testInvalidatesUnsafeRequestsWithVariants 0.001 s
testGetVariantsRootNonExistentVariants 0 s
testDoesNotInvalidateUriSpecifiedByContentLocationIfEntryHasNoEtag 0.001 s
testGetCacheEntryReturnsNullOnCacheMiss 0 s
testUpdateVariantCacheEntry 0 s
testInvalidatesUriSpecifiedByContentLocationIfEntryHasMalformedDate 0.001 s
testDoesNotInvalidateSafeRequests 0 s
testGetVariantsRootNoVariants 0.001 s
testGetCacheEntryFetchesFromCacheOnCacheHitIfNoVariants 0 s
testGetCacheEntryReturnsVariantIfPresentInCache 0.001 s
testInvalidatesUriSpecifiedByContentLocationIfEntryHasNoDate 0.001 s
testDoesNotInvalidateUriSpecifiedByContentLocationIfResponseHasNoEtag 0.001 s
testUpdateCacheEntry 0.001 s

TestBasicHttpCache

testDoesNotInvalidateUriSpecifiedByContentLocationIfEtagsMatch 0.234 s
testInvalidateUriSpecifiedByContentLocationNonCanonical 0.002 s
testStoreFromNegotiatedVariant 0.004 s
testInvalidateUriSpecifiedByContentLocationRelative 0.002 s
testInvalidatesUnsafeRequests 0.001 s
testDoesNotInvalidateUriSpecifiedByContentLocationOtherOrigin 0 s
testDoesNotInvalidateUriSpecifiedByContentLocationIfOlder 0.001 s
testGetVariantCacheEntriesReturnsAllVariants 0.004 s
testInvalidatesUriSpecifiedByContentLocationIfResponseHasMalformedDate 0.001 s
testInvalidateUriSpecifiedByLocationAndFresher 0.002 s
testDoesNotInvalidateForUnsuccessfulResponse 0 s
testUpdateCacheEntryTurnsVariant 0.001 s
testInvalidateUriSpecifiedByContentLocationAndFresher 0.001 s
testGetCacheEntryReturnsNullIfNoVariantInCache 0.001 s
testInvalidatesUriSpecifiedByContentLocationIfResponseHasNoDate 0.001 s
testGetCacheEntryReturnsVariantWithMostRecentDateHeader 0.001 s
testInvalidatesUnsafeRequestsWithVariants 0.002 s
testGetVariantsRootNonExistentVariants 0 s
testDoesNotInvalidateUriSpecifiedByContentLocationIfEntryHasNoEtag 0.001 s
testGetCacheEntryReturnsNullOnCacheMiss 0.003 s
testUpdateVariantCacheEntry 0.001 s
testInvalidatesUriSpecifiedByContentLocationIfEntryHasMalformedDate 0.001 s
testDoesNotInvalidateSafeRequests 0 s
testGetVariantsRootNoVariants 0.001 s
testGetCacheEntryFetchesFromCacheOnCacheHitIfNoVariants 0 s
testGetCacheEntryReturnsVariantIfPresentInCache 0.001 s
testInvalidatesUriSpecifiedByContentLocationIfEntryHasNoDate 0.001 s
testDoesNotInvalidateUriSpecifiedByContentLocationIfResponseHasNoEtag 0.001 s
testUpdateCacheEntry 0.001 s

TestCombinedEntity

testCombinedEntityBasics 0.034 s

TestAbstractSerializingAsyncCacheStorage

testCacheUpdateFail 0.023 s
testCacheGetKeyMismatch 0.002 s
testBulkGet 0.003 s
testCacheRemove 0.001 s
testCacheGetNullEntry 0.001 s
testCacheGet 0.002 s
testCachePut 0.002 s
testCacheCASUpdate 0.001 s
testCacheUpdateNullEntry 0.002 s
testSingleCacheUpdateRetry 0.001 s
testCacheCASUpdateKeyMismatch 0.001 s
testBulkGetKeyMismatch 0.001 s

TestSHA256HashingScheme

canHash 0.002 s

TestImmediateSchedulingStrategy

testSchedule 0.001 s

TestPrefixKeyHashingScheme

addsPrefixToBackingScheme 0.001 s

TestAbstractSerializingCacheStorage

testCacheUpdateFail 0.025 s
testCacheGetKeyMismatch 0.001 s
testBulkGet 0.003 s
testCacheRemove 0 s
testCacheGetNullEntry 0.001 s
testCacheGet 0.001 s
testCachePut 0.001 s
testCacheCASUpdate 0.001 s
testCacheUpdateNullEntry 0.001 s
testSingleCacheUpdateRetry 0.002 s
testCacheCASUpdateKeyMismatch 0.001 s
testBulkGetKeyMismatch 0.001 s

TestRFC5861Compliance

testStaleIfErrorInResponseYieldsToProxyRevalidateForSharedCache 0.002 s
testStaleIfErrorInRequestIsFalseReturnsError 0.001 s
testStaleIfErrorInResponseYieldsToMustRevalidate 0.001 s
testStaleIfErrorInResponseYieldsToExplicitFreshnessRequest 0 s
testConsumesErrorResponseWhenServingStale 0.011 s
testStaleIfErrorInResponseIsFalseReturnsError 0.001 s

TestViaCacheGenerator

testViaValueLookup 0.003 s
testViaValueGeneration 0.001 s

TestHttpCacheEntryFactory

testNewerHeadersReplaceExistingHeaders 0.007 s
testCreateRootVariantEntry 0.007 s
testFilterHopByHopAndConnectionSpecificHeaders 0.002 s
testHeadersAreMergedCorrectly 0.001 s
testNewHeadersAreAddedByMerge 0.001 s
testUpdateHasLatestRequestAndResponseDates 0.001 s
testUpdateNotModifiedIfResponseOlder 0.001 s
testCreateUpdatedResourceEntry 0.001 s
entryIsStillUpdatedByResponseWithMalformedDate 0.001 s
testCreateResourceEntry 0.001 s
entryWithMalformedDateIsStillUpdated 0 s
cannotUpdateFromANon304OriginResponse 0 s
testUpdateCacheEntryReturnsDifferentEntryInstance 0.001 s