Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
662 0 0 0 100% 2.169

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.003
org.apache.hc.client5.http.schedule 1 0 0 0 100% 0.003
org.apache.hc.client5.http.cache 36 0 0 0 100% 0.509
org.apache.hc.client5.http.impl.cache 621 0 0 0 100% 1.651
org.apache.hc.client5.http.impl.cache.memcached 2 0 0 0 100% 0.003

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.002
TestImmediateSchedulingStrategy 1 0 0 0 100% 0.001

org.apache.hc.client5.http.schedule

Class Tests Errors Failures Skipped Success Rate Time
TestConcurrentCountMap 1 0 0 0 100% 0.003

org.apache.hc.client5.http.cache

Class Tests Errors Failures Skipped Success Rate Time
ManagedHttpCacheStorageTest 3 0 0 0 100% 0.006
TestHttpCacheEntry 20 0 0 0 100% 0.46
TestHttpCacheEntryFactory 13 0 0 0 100% 0.043

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

Class Tests Errors Failures Skipped Success Rate Time
TestHttpCacheJiraNumber1147 1 0 0 0 100% 0.004
TestCacheKeyGenerator 30 0 0 0 100% 0.014
TestCachingExecChain 40 0 0 0 100% 0.118
TestProtocolRequirements 132 0 0 0 100% 0.295
TestFileResourceFactory 1 0 0 0 100% 0.007
TestHttpByteArrayCacheEntrySerializer 13 0 0 0 100% 0.014
TestCacheableRequestPolicy 5 0 0 0 100% 0.002
TestResponseCacheConformance 5 0 0 0 100% 0.004
TestCacheSupport 1 0 0 0 100% 0
TestCacheValidityPolicy 27 0 0 0 100% 0.015
TestInternalCacheStorage 2 0 0 0 100% 0.001
CacheControlGeneratorTest 2 0 0 0 100% 0.004
TestConditionalRequestBuilder 15 0 0 0 100% 0.009
TestResponseCachingPolicy 93 0 0 0 100% 0.04
TestCacheRevalidatorBase 5 0 0 0 100% 0.057
CacheControlParserTest 23 0 0 0 100% 0.016
TestProtocolAllowedBehavior 1 0 0 0 100% 0.072
TestByteArrayCacheEntrySerializer 36 0 0 0 100% 0.051
TestCachedResponseSuitabilityChecker 24 0 0 0 100% 0.028
TestCachedHttpResponseGenerator 7 0 0 0 100% 0.03
TestProtocolRecommendations 67 0 0 0 100% 0.123
TestBasicHttpAsyncCache 29 0 0 0 100% 0.081
TestBasicHttpCache 29 0 0 0 100% 0.441
TestCombinedEntity 1 0 0 0 100% 0.048
TestAbstractSerializingAsyncCacheStorage 12 0 0 0 100% 0.073
TestAbstractSerializingCacheStorage 12 0 0 0 100% 0.061
TestRFC5861Compliance 6 0 0 0 100% 0.04
TestViaCacheGenerator 2 0 0 0 100% 0.003

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

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

Test Cases

[Summary] [Package List] [Test Cases]

TestHttpCacheJiraNumber1147

testIssue1147 0.004

TestCacheKeyGenerator

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

TestCachingExecChain

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

TestConcurrentCountMap

testBasics 0.002

ManagedHttpCacheStorageTest

cacheDisableThrowsIllegalStateException 0.003
isActive 0.002
putEntry 0.001

TestProtocolRequirements

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

TestFileResourceFactory

testViaValueLookup 0.007

TestHttpByteArrayCacheEntrySerializer

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

TestCacheableRequestPolicy

testIsGetServableFromCache 0
testIsHeadServableFromCache 0
testIsGetWithCacheControlServableFromCache 0
testIsHeadWithCacheControlServableFromCache 0
testIsArbitraryMethodServableFromCache 0

TestExponentialBackingOffSchedulingStrategy

testSchedule 0

TestHttpCacheEntry

testMissingDateHeaderIsIgnored 0.356
testGetHeadersReturnsEmptyArrayIfNoneMatch 0.002
testGetHeadersReturnsCorrectHeaders 0
statusCodeComesFromOriginalStatusLine 0
testGetMethodReturnsCorrectRequestMethod 0.002
canGetOriginalRequestDate 0.001
testDateParsedOnce 0.016
canRetrieveOriginalVariantMap 0.002
canGetOriginalResource 0.001
retrievedVariantMapIsNotModifiable 0.002
testIsCacheEntryNewer 0.005
testGetFirstHeaderReturnsNullIfNoneMatch 0.001
testGetFirstHeaderReturnsCorrectHeader 0.001
testEpochDateHeaderIsParsed 0.001
canGetOriginalResponseDate 0
canConvertToString 0.026
testMalformedDateHeaderIsIgnored 0.001
testValidDateHeaderIsParsed 0.001
testExpiresParsedOnce 0.001
canGetOriginalHeaders 0.001

TestResponseCacheConformance

shouldStripContentLengthFromOrigin304ResponseToStrongValidation 0.001
shouldStripContentEncodingFromOrigin304ResponseToStrongValidation 0.001
shouldStripContentTypeFromOrigin304ResponseToStrongValidation 0
shouldStripContentMD5FromOrigin304ResponseToStrongValidation 0
shouldStripContentLanguageFromOrigin304ResponseToStrongValidation 0.001

TestCacheSupport

testParseDeltaSeconds 0

TestCacheValidityPolicy

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

TestInternalCacheStorage

testCacheBasics 0
testCacheEviction 0

CacheControlGeneratorTest

testGenerateRequestCacheControlHeader 0.002
testGenerateRequestCacheControlHeaderNoDirectives 0.001

TestConditionalRequestBuilder

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

TestResponseCachingPolicy

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

TestCacheRevalidatorBase

testRevalidateCacheEntryProperlyCollapsesRequest 0.04
testRevalidateCacheEntrySchedulesExecutionAndPopulatesIdentifier 0.003
testRevalidateCacheEntryDoesNotPopulateIdentifierOnRejectedExecutionException 0.006
testShutdown 0.002
testMarkCompleteRemovesIdentifier 0.002

CacheControlParserTest

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

TestProtocolAllowedBehavior

testNonSharedCacheMayCacheResponsesWithCacheControlPrivate 0.071

TestByteArrayCacheEntrySerializer

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

TestCachedResponseSuitabilityChecker

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

TestCachedHttpResponseGenerator

testAgeHeaderIsNotPopulatedIfCurrentAgeOfCacheEntryIsZero 0.026
testAgeHeaderIsPopulatedWithCurrentAgeOfCacheEntryIfNonZero 0.001
testResponseDoesNotContainEntityToServeHEADRequestIfEntryContainsResource 0
testResponseStatusCodeMatchesCacheEntry 0.001
testResponseContainsEntityToServeGETRequestIfEntryContainsResource 0
testResponseHasContentLength 0
testAgeHeaderIsPopulatedWithMaxAgeIfCurrentAgeTooBig 0

TestProtocolRecommendations

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

TestBasicHttpAsyncCache

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

TestBasicHttpCache

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

TestCombinedEntity

testCombinedEntityBasics 0.047

TestAbstractSerializingAsyncCacheStorage

testCacheUpdateFail 0.035
testCacheGetKeyMismatch 0.003
testBulkGet 0.004
testCacheRemove 0.002
testCacheGetNullEntry 0.002
testCacheGet 0.003
testCachePut 0.004
testCacheCASUpdate 0.004
testCacheUpdateNullEntry 0.003
testSingleCacheUpdateRetry 0.003
testCacheCASUpdateKeyMismatch 0.005
testBulkGetKeyMismatch 0.004

TestSHA256HashingScheme

canHash 0.002

TestImmediateSchedulingStrategy

testSchedule 0.001

TestPrefixKeyHashingScheme

addsPrefixToBackingScheme 0.001

TestAbstractSerializingCacheStorage

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

TestRFC5861Compliance

testStaleIfErrorInResponseYieldsToProxyRevalidateForSharedCache 0.004
testStaleIfErrorInRequestIsFalseReturnsError 0.005
testStaleIfErrorInResponseYieldsToMustRevalidate 0.004
testStaleIfErrorInResponseYieldsToExplicitFreshnessRequest 0.002
testConsumesErrorResponseWhenServingStale 0.022
testStaleIfErrorInResponseIsFalseReturnsError 0.001

TestViaCacheGenerator

testViaValueLookup 0.003
testViaValueGeneration 0

TestHttpCacheEntryFactory

testNewerHeadersReplaceExistingHeaders 0.011
testCreateRootVariantEntry 0.008
testFilterHopByHopAndConnectionSpecificHeaders 0.004
testHeadersAreMergedCorrectly 0.001
testNewHeadersAreAddedByMerge 0
testUpdateHasLatestRequestAndResponseDates 0.001
testUpdateNotModifiedIfResponseOlder 0.004
testCreateUpdatedResourceEntry 0.001
entryIsStillUpdatedByResponseWithMalformedDate 0
testCreateResourceEntry 0.001
entryWithMalformedDateIsStillUpdated 0.001
cannotUpdateFromANon304OriginResponse 0.001
testUpdateCacheEntryReturnsDifferentEntryInstance 0.001