Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
98900299.798%3.696

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


Package List

[Summary] [Package List] [Test Cases]


PackageTestsErrors FailuresSkippedSuccess RateTime
org.apache.http.client.cache28000100%0.006
org.apache.http.impl.client.cache.memcached29000100%0.067
org.apache.http.impl.client.cache.ehcache24000199.583%1.701
org.apache.http.impl.client.cache69200199.855%1.922

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

org.apache.http.client.cache

ClassTestsErrors FailuresSkippedSuccess RateTime
TestHttpCacheEntry28000100%0.006

org.apache.http.impl.client.cache.memcached

ClassTestsErrors FailuresSkippedSuccess RateTime
TestSHA256HashingScheme1000100%0.001
TestMemcachedHttpCacheStorage20000100%0.056
TestPrefixKeyHashingScheme1000100%0
TestMemcachedCacheEntryFactoryImpl1000100%0.002
TestMemcachedCacheEntryImpl6000100%0.008

org.apache.http.impl.client.cache.ehcache

ClassTestsErrors FailuresSkippedSuccess RateTime
TestEhcacheHttpCacheStorage8000100%0.02
TestEhcacheProtocolRequirements23200199.569%1.681

Test Cases

[Summary] [Package List] [Test Cases]

TestConditionalRequestBuilder

testBuildConditionalRequestFromVariants0
testConditionalRequestForEntryWithLastModifiedAndEtagIncludesBothAsValidators0.001
testCacheEntryWithMustRevalidateDoesEndToEndRevalidation0
testCacheEntryWithProxyRevalidateDoesEndToEndRevalidation0
testBuildUnconditionalRequestUsesGETMethod0
testBuildUnconditionalRequestUsesRequestUri0
testBuildUnconditionalRequestUsesHTTP_1_10
testBuildUnconditionalRequestAddsCacheControlNoCache0
testBuildUnconditionalRequestAddsPragmaNoCache0
testBuildUnconditionalRequestDoesNotUseIfRange0
testBuildUnconditionalRequestDoesNotUseIfMatch0
testBuildUnconditionalRequestDoesNotUseIfNoneMatch0
testBuildUnconditionalRequestDoesNotUseIfUnmodifiedSince0
testBuildUnconditionalRequestDoesNotUseIfModifiedSince0
testBuildUnconditionalRequestCarriesOtherRequestHeaders0
testBuildConditionalRequestWithLastModified0.001
testBuildConditionalRequestWithETag0

TestCacheableRequestPolicy

testIsGetWithCacheControlServableFromCache0
testIsGetWithPragmaServableFromCache0
testIsArbitraryMethodServableFromCache0.001
testIsGetServableFromCache0

TestCachedHttpResponseGenerator

testContentLengthIsNotAddedWhenTransferEncodingIsPresent0
testResponseMatchesCacheEntry0
testResponseStatusCodeMatchesCacheEntry0
testAgeHeaderIsPopulatedWithCurrentAgeOfCacheEntryIfNonZero0
testAgeHeaderIsNotPopulatedIfCurrentAgeOfCacheEntryIsZero0
testAgeHeaderIsPopulatedWithMaxAgeIfCurrentAgeTooBig0.001
testResponseHasContentLength0

TestCacheValidityPolicy

testHeuristicFreshnessLifetimeIsNonNegative0.001
testResponseIsFreshIfFreshnessLifetimeExceedsCurrentAge0
testResponseIsNotFreshIfFreshnessLifetimeEqualsCurrentAge0
testResponseIsNotFreshIfCurrentAgeExceedsFreshnessLifetime0
testCacheEntryIsRevalidatableIfHeadersIncludeETag0
testCacheEntryIsRevalidatableIfHeadersIncludeLastModifiedDate0.001
testCacheEntryIsNotRevalidatableIfNoAppropriateHeaders0
testMissingContentLengthDoesntInvalidateEntry0
testCorrectContentLengthDoesntInvalidateEntry0
testWrongContentLengthInvalidatesEntry0.001
testMalformedContentLengthReturnsNegativeOne0
testNegativeAgeHeaderValueReturnsMaxAge0
testMalformedAgeHeaderValueReturnsMaxAge0.001
testMalformedCacheControlMaxAgeHeaderReturnsZero0
testMalformedExpirationDateReturnsNull0
testMustRevalidateIsFalseIfDirectiveNotPresent0
testMustRevalidateIsTrueWhenDirectiveIsPresent0.001
testProxyRevalidateIsFalseIfDirectiveNotPresent0
testProxyRevalidateIsTrueWhenDirectiveIsPresent0
testMayReturnStaleIfErrorInResponseIsTrueWithinStaleness0.001
testMayReturnStaleIfErrorInRequestIsTrueWithinStaleness0
testMayNotReturnStaleIfErrorInResponseAndAfterResponseWindow0
testMayNotReturnStaleIfErrorInResponseAndAfterRequestWindow0
testMayReturnStaleWhileRevalidatingIsFalseWhenDirectiveIsAbsent0
testMayReturnStaleWhileRevalidatingIsTrueWhenWithinStaleness0
testMayReturnStaleWhileRevalidatingIsFalseWhenPastStaleness0
testMayReturnStaleWhileRevalidatingIsFalseWhenDirectiveEmpty0
testCorrectedReceivedAgeIsApparentAgeIfLarger0
testResponseDelayIsDifferenceBetweenResponseAndRequestTimes0
testCorrectedInitialAgeIsCorrectedReceivedAgePlusResponseDelay0
testResidentTimeSecondsIsTimeSinceResponseTime0
testCurrentAgeIsCorrectedInitialAgePlusResidentTime0
testFreshnessLifetimeIsSMaxAgeIfPresent0.001
testFreshnessLifetimeIsMaxAgeIfPresent0
testFreshnessLifetimeIsMostRestrictiveOfMaxAgeAndSMaxAge0
testFreshnessLifetimeIsMaxAgeEvenIfExpiresIsPresent0
testFreshnessLifetimeIsSMaxAgeEvenIfExpiresIsPresent0
testFreshnessLifetimeIsFromExpiresHeaderIfNoMaxAge0.001
testHeuristicFreshnessLifetime0
testHeuristicFreshnessLifetimeDefaultsProperly0
testApparentAgeIsMaxIntIfDateHeaderNotPresent0
testApparentAgeIsResponseReceivedTimeLessDateHeader0
testNegativeApparentAgeIsBroughtUpToZero0
testCorrectedReceivedAgeIsAgeHeaderIfLarger0

TestWarningValue

testConstructWarnValueWithTextWithCommas0
testConstructWarnValueWithTextWithEscapedQuotes0
testConstructWarnValueWithAscTimeWarnDate0
testConstructWarnValueWithRFC850WarnDate0.001
testConstructWarnValueWithRFC1123WarnDate0
testParseSingleWarnValue0
testParseMultipleWarnValues0
testMidHeaderParseErrorRecovery0
testTrickyCommaMidHeaderParseErrorRecovery0
testParseErrorRecoveryAtEndOfHeader0
testConstructSingleWarnValue0
testConstructWarnValueWithIPv4Address0
testConstructWarnValueWithHostname0
testConstructWarnValueWithHostnameAndPort0.001
testConstructWarnValueWithIPv4AddressAndPort0
testConstructWarnValueWithPseudonym0
testConstructWarnValueWithTextWithSpaces0

TestProtocolRequirements

testMustIncludeWWWAuthenticateHeaderOnAnOrigin401Response0.002
testMustIncludeAllowHeaderFromAnOrigin405Response0.002
testMustIncludeProxyAuthenticateHeaderFromAnOrigin407Response0.001
testMustNotAddMultipartByteRangeContentTypeTo416Response0.001
testMustNotUseMultipartByteRangeContentTypeOnCacheGenerated416Responses0.002
testMustReturnACacheEntryIfItCanRevalidateIt0.002
testMustReturnAFreshEnoughCacheEntryIfItHasIt0.002
testMustServeAppropriateErrorOrWarningIfNoOriginCommunicationPossible0.002
testAttachesWarningHeaderWhenGeneratingStaleResponse0
test1xxWarningsAreDeletedAfterSuccessfulRevalidation0.002
test2xxWarningsAreNotDeletedAfterSuccessfulRevalidation0.003
testAgeHeaderPopulatedFromCacheEntryCurrentAge0.001
testHeuristicCacheOlderThan24HoursHasWarningAttached0.003
testKeepsMostRecentDateHeaderForFreshResponse0.002
testSubrangeGETWithWeakETagIsNotAllowed0.001
testPUTWithIfMatchWeakETagIsNotAllowed0.001
testPUTWithIfNoneMatchWeakETagIsNotAllowed0
testDELETEWithIfMatchWeakETagIsNotAllowed0.001
testDELETEWithIfNoneMatchWeakETagIsNotAllowed0.001
testSubrangeGETMustUseStrongComparisonForCachedResponse0.001
testValidationMustUseETagIfProvidedByOriginServer0.002
testConditionalRequestWhereNotAllValidatorsMatchCannotBeServedFromCache0.002
testConditionalRequestWhereAllValidatorsMatchMayBeServedFromCache0.001
testCacheWithoutSupportForRangeAndContentRangeHeadersDoesNotCacheA206Response0.001
test302ResponseWithoutExplicitCacheabilityIsNotReturnedFromCache0.001
testDoesNotModifyContentLocationHeaderFromOrigin0.001
testDoesNotModifyContentMD5HeaderFromOrigin0.001
testDoesNotModifyEtagHeaderFromOrigin0.001
testDoesNotModifyLastModifiedHeaderFromOrigin0.001
testDoesNotAddContentLocationToOriginResponse0.001
testDoesNotAddContentMD5ToOriginResponse0.001
testDoesNotAddEtagToOriginResponse0.001
testDoesNotAddLastModifiedToOriginResponse0.001
testDoesNotModifyContentLocationFromOriginOnCacheHit0.002
testDoesNotModifyContentMD5FromOriginOnCacheHit0.002
testDoesNotModifyEtagFromOriginOnCacheHit0.002
testDoesNotModifyLastModifiedFromOriginOnCacheHit0.001
testDoesNotAddContentLocationHeaderOnCacheHit0
testDoesNotAddContentMD5HeaderOnCacheHit0
testDoesNotAddETagHeaderOnCacheHit0.001
testDoesNotAddLastModifiedHeaderOnCacheHit0.001
testDoesNotModifyContentLocationHeaderOnRequest0
testDoesNotModifyContentMD5HeaderOnRequest0
testDoesNotModifyETagHeaderOnRequest0.001
testDoesNotModifyLastModifiedHeaderOnRequest0.001
testDoesNotAddContentLocationToRequestIfNotPresent0
testDoesNotAddContentMD5ToRequestIfNotPresent0
testDoesNotAddETagToRequestIfNotPresent0
testDoesNotAddLastModifiedToRequestIfNotPresent0.001
testDoesNotModifyExpiresHeaderFromOrigin0.001
testDoesNotModifyExpiresHeaderFromOriginOnCacheHit0.001
testExpiresHeaderMatchesDateIfAddedToOriginResponse0.001
testExpiresHeaderMatchesDateIfAddedToCacheHit0.001
testDoesNotModifyContentEncodingHeaderFromOriginResponseWithNoTransform0.001
testDoesNotModifyContentRangeHeaderFromOriginResponseWithNoTransform0.001
testDoesNotModifyContentTypeHeaderFromOriginResponseWithNoTransform0.001
testDoesNotModifyContentEncodingHeaderOnCachedResponseWithNoTransform0.001
testDoesNotModifyContentTypeHeaderOnCachedResponseWithNoTransform0.001
testDoesNotModifyContentRangeHeaderOnCachedResponseWithNoTransform0.002
testDoesNotAddContentEncodingHeaderToOriginResponseWithNoTransformIfNotPresent0.001
testDoesNotAddContentRangeHeaderToOriginResponseWithNoTransformIfNotPresent0.001
testDoesNotAddContentTypeHeaderToOriginResponseWithNoTransformIfNotPresent0.001
testDoesNotAddContentEncodingHeaderToCachedResponseWithNoTransformIfNotPresent0.001
testDoesNotAddContentRangeHeaderToCachedResponseWithNoTransformIfNotPresent0.001
testDoesNotAddContentTypeHeaderToCachedResponseWithNoTransformIfNotPresent0.002
testDoesNotAddContentEncodingToRequestIfNotPresent0.001
testDoesNotAddContentRangeToRequestIfNotPresent0.001
testDoesNotAddContentTypeToRequestIfNotPresent0.001
testDoesNotAddContentEncodingHeaderToRequestIfNotPresent0.001
testDoesNotAddContentRangeHeaderToRequestIfNotPresent0.001
testDoesNotAddContentTypeHeaderToRequestIfNotPresent0.001
testResponseIncludesCacheEntryEndToEndHeadersForResponseAfter304Validation0.003
testUpdatedEndToEndHeadersFrom304ArePassedOnResponseAndUpdatedInCacheEntry0.001
testMultiHeadersAreSuccessfullyReplacedOn304Validation0.002
testCannotCombinePartialResponseIfIncomingResponseDoesNotHaveACacheValidator0.002
testCannotCombinePartialResponseIfCacheEntryDoesNotHaveACacheValidator0.002
testCannotCombinePartialResponseIfCacheValidatorsDoNotStronglyMatch0.002
testMustDiscardLeastRecentPartialResponseIfIncomingRequestDoesNotHaveCacheValidator0.002
testMustDiscardLeastRecentPartialResponseIfCachedResponseDoesNotHaveCacheValidator0.003
testMustDiscardLeastRecentPartialResponseIfCacheValidatorsDoNotStronglyMatch0.002
testMustDiscardLeastRecentPartialResponseIfCacheValidatorsDoNotStronglyMatchEvenIfResponsesOutOfOrder0.003
testMustDiscardCachedPartialResponseIfCacheValidatorsDoNotStronglyMatchAndDateHeadersAreEqual0.003
testCannotUseVariantCacheEntryIfNotAllSelectingRequestHeadersMatch0.002
testCannotServeFromCacheForVaryStar0.002
testNonmatchingVariantCannotBeServedFromCacheUnlessConditionallyValidated0.003
testIncompleteResponseMustNotBeReturnedToClientWithoutMarkingItAs2060.001
testPutToUriInvalidatesCacheForThatUri0.002
testDeleteToUriInvalidatesCacheForThatUri0.001
testPostToUriInvalidatesCacheForThatUri0.002
testPutInvalidatesCacheForThatUriInContentLocationHeader0.001
testPutInvalidatesCacheForThatUriInLocationHeader0.002
testPutInvalidatesCacheForThatUriInRelativeContentLocationHeader0.001
testDeleteInvalidatesCacheForThatUriInContentLocationHeader0.002
testDeleteInvalidatesCacheForThatUriInRelativeContentLocationHeader0.001
testDeleteInvalidatesCacheForThatUriInLocationHeader0.001
testPostInvalidatesCacheForThatUriInContentLocationHeader0.003
testPostInvalidatesCacheForThatUriInLocationHeader0.002
testPostInvalidatesCacheForRelativeUriInContentLocationHeader0.003
testPutDoesNotInvalidateCacheForUriInContentLocationHeadersFromOtherHosts0.002
testPutDoesNotInvalidateCacheForUriInLocationHeadersFromOtherHosts0.002
testPostDoesNotInvalidateCacheForUriInContentLocationHeadersFromOtherHosts0.002
testPostDoesNotInvalidateCacheForUriInLocationHeadersFromOtherHosts0.002
testDeleteDoesNotInvalidateCacheForUriInContentLocationHeadersFromOtherHosts0.002
testDeleteDoesNotInvalidateCacheForUriInLocationHeadersFromOtherHosts0.002
testOPTIONSRequestsAreWrittenThroughToOrigin0.002
skipped
testPOSTRequestsAreWrittenThroughToOrigin0.001
testPUTRequestsAreWrittenThroughToOrigin0.001
testDELETERequestsAreWrittenThroughToOrigin0.001
testTRACERequestsAreWrittenThroughToOrigin0.001
testCONNECTRequestsAreWrittenThroughToOrigin0.001
testUnknownMethodRequestsAreWrittenThroughToOrigin0.001
testTransmitsAgeHeaderIfIncomingAgeHeaderTooBig0.001
testDoesNotModifyAllowHeaderWithUnknownMethods0.001
testSharedCacheMustNotNormallyCacheAuthorizedResponses0.001
testSharedCacheMayCacheAuthorizedResponsesWithSMaxAgeHeader0.001
testSharedCacheMustRevalidateAuthorizedResponsesWhenSMaxAgeIsZero0.002
testSharedCacheMayCacheAuthorizedResponsesWithMustRevalidate0.001
testSharedCacheMayCacheAuthorizedResponsesWithCacheControlPublic0.001
testSharedCacheMustUseNewRequestHeadersWhenRevalidatingAuthorizedResponsesWithSMaxAge0.001
testSharedCacheMustUseNewRequestHeadersWhenRevalidatingAuthorizedResponsesWithMustRevalidate0.001
testWarning110IsAddedToStaleResponses0.002
testDoesNotTransmitNoCacheDirectivesWithFieldsDownstream0
testCacheIsNotUsedWhenRespondingToRequestWithCacheControlNoCache0.001
testCacheMissOnGETUsesOriginResponse0
testHigherMajorProtocolVersionsOnRequestSwitchToTunnelBehavior0.001
testHigher1_XProtocolVersionsDowngradeTo1_10.001
testRequestsWithLowerProtocolVersionsGetUpgradedTo1_10.001
testOrderOfMultipleWarningHeadersIsPreservedOnRequests0.001
testOrderOfMultipleAllowHeadersIsPreservedOnResponses0.001
testOrderOfMultipleCacheControlHeadersIsPreservedOnResponses0
testOrderOfMultipleContentEncodingHeadersIsPreservedOnResponses0.001
testOrderOfMultipleContentLanguageHeadersIsPreservedOnResponses0.001
testOrderOfMultiplePragmaHeadersIsPreservedOnResponses0.001
testOrderOfMultipleViaHeadersIsPreservedOnResponses0.001
testOrderOfMultipleWWWAuthenticateHeadersIsPreservedOnResponses0.001
testUnknownResponseStatusCodesAreNotCached0.5
testUnknownHeadersOnRequestsAreForwarded0
testUnknownHeadersOnResponsesAreForwarded0
testRequestsExpecting100ContinueBehaviorShouldSetExpectHeader0.001
testRequestsNotExpecting100ContinueBehaviorShouldNotSetExpectContinueHeader0.001
testExpect100ContinueIsNotSentIfThereIsNoRequestBody0
testExpectHeadersAreForwardedOnRequests0
test100ContinueResponsesAreNotForwardedTo1_0ClientsWhoDidNotAskForThem0
testResponsesToOPTIONSAreNotCacheable0.001
test200ResponseToOPTIONSWithNoBodyShouldIncludeContentLengthZero0.001
testDoesNotForwardOPTIONSWhenMaxForwardsIsZeroOnAbsoluteURIRequest0
testDecrementsMaxForwardsWhenForwardingOPTIONSRequest0.001
testDoesNotAddAMaxForwardsHeaderToForwardedOPTIONSRequests0
testResponseToAHEADRequestMustNotHaveABody0.001
testHEADResponseWithUpdatedContentLengthFieldMakeACacheEntryStale0.001
testHEADResponseWithUpdatedContentMD5FieldMakeACacheEntryStale0.001
testHEADResponseWithUpdatedETagFieldMakeACacheEntryStale0.001
testHEADResponseWithUpdatedLastModifiedFieldMakeACacheEntryStale0.002
testResponsesToPOSTWithoutCacheControlOrExpiresAreNotCached0
testResponsesToPUTsAreNotCached0
testResponsesToDELETEsAreNotCached0.001
testForwardedTRACERequestsDoNotIncludeAnEntity0
testResponsesToTRACEsAreNotCached0
test204ResponsesDoNotContainMessageBodies0.001
test205ResponsesDoNotContainMessageBodies0.001
test206ResponseGeneratedFromCacheMustHaveContentRangeOrMultipartByteRangesContentType0.001
test206ResponseGeneratedFromCacheMustHaveABodyThatMatchesContentLengthHeaderIfPresent0.001
test206ResponseGeneratedFromCacheMustHaveDateHeader0.002
test206ResponseReturnedToClientMustHaveDateHeader0.001
test206ContainsETagIfA200ResponseWouldHaveIncludedIt0.002
test206ContainsContentLocationIfA200ResponseWouldHaveIncludedIt0.001
test206ResponseIncludesVariantHeadersIfValueMightDiffer0.002
test206ResponseToConditionalRangeRequestDoesNotIncludeOtherEntityHeaders0.001
test206ResponseToIfRangeWithStrongValidatorReturnsAllEntityHeaders0.002
test206ResponseIsNotCombinedWithPreviousContentIfETagDoesNotMatch0.002
test206ResponseIsNotCombinedWithPreviousContentIfLastModifiedDoesNotMatch0.001
test206ResponsesAreNotCachedIfTheCacheDoesNotSupportRangeAndContentRangeHeaders0.001
test303ResponsesAreNotCached0.001
test304ResponseDoesNotContainABody0.001
test304ResponseWithDateHeaderForwardedFromOriginIncludesDateHeader0.001
test304ResponseGeneratedFromCacheIncludesDateHeader0.001
test304ResponseGeneratedFromCacheIncludesEtagIfOriginResponseDid0.001
test304ResponseGeneratedFromCacheIncludesContentLocationIfOriginResponseDid0.001
test304ResponseGeneratedFromCacheIncludesExpiresCacheControlAndOrVaryIfResponseMightDiffer0.003
test304GeneratedFromCacheOnWeakValidatorDoesNotIncludeOtherEntityHeaders0.001
testNotModifiedOfNonCachedEntityShouldRevalidateWithUnconditionalGET0.001
testCacheEntryIsUpdatedWithNewFieldValuesIn304Response0.002
testLowerOriginResponsesUpgradedToOurVersion1_10.001
testResponseToA1_0RequestShouldUse1_10.001
testForwardsUnknownHeadersOnRequestsFromHigherProtocolVersions0.001
testTransferCodingsAreNotSentToAnHTTP_1_0Client0.001
testOrderOfMultipleAcceptHeaderValuesIsPreservedOnRequests0.001
testOrderOfMultipleAcceptCharsetHeadersIsPreservedOnRequests0.001
testOrderOfMultipleAcceptEncodingHeadersIsPreservedOnRequests0.001
testOrderOfMultipleAcceptLanguageHeadersIsPreservedOnRequests0.001
testOrderOfMultipleAllowHeadersIsPreservedOnRequests0.001
testOrderOfMultipleCacheControlHeadersIsPreservedOnRequests0.001
testOrderOfMultipleContentEncodingHeadersIsPreservedOnRequests0
testOrderOfMultipleContentLanguageHeadersIsPreservedOnRequests0.001
testOrderOfMultipleExpectHeadersIsPreservedOnRequests0.001
testOrderOfMultiplePragmaHeadersIsPreservedOnRequests0
testOrderOfMultipleViaHeadersIsPreservedOnRequests0
testCacheIsNotUsedWhenRespondingToRequestWithPragmaNoCache0.001
testStaleEntryWithMustRevalidateIsNotUsedWithoutRevalidatingWithOrigin0.002
testGenerates504IfCannotRevalidateAMustRevalidateEntry0.001
testStaleEntryWithProxyRevalidateOnSharedCacheIsNotUsedWithoutRevalidatingWithOrigin0.001
testGenerates504IfSharedCacheCannotRevalidateAProxyRevalidateEntry0.001
testCacheControlPrivateIsNotCacheableBySharedCache0.001
testCacheControlPrivateOnFieldIsNotReturnedBySharedCache0.001
testNoCacheCannotSatisfyASubsequentRequestWithoutRevalidation0.001
testNoCacheCannotSatisfyASubsequentRequestWithoutRevalidationEvenWithContraryIndications0.001
testNoCacheOnFieldIsNotReturnedWithoutRevalidation0.001
testNoStoreOnRequestIsNotStoredInCache0.001
testNoStoreOnRequestIsNotStoredInCacheEvenIfResponseMarkedCacheable0.001
testNoStoreOnResponseIsNotStoredInCache0
testNoStoreOnResponseIsNotStoredInCacheEvenWithContraryIndicators0.001
testOrderOfMultipleContentEncodingHeaderValuesIsPreserved0.001
testOrderOfMultipleParametersInContentEncodingHeaderIsPreserved0.001
testCacheDoesNotAssumeContentLocationHeaderIndicatesAnotherCacheableResource0.001
testCachedResponsesWithMissingDateHeadersShouldBeAssignedOne0.001
testMalformedExpiresHeaderIsTreatedAsStale0.001
testExpiresZeroHeaderIsTreatedAsStale0.001
testExpiresHeaderEqualToDateHeaderIsTreatedAsStale0.002
testDoesNotModifyServerResponseHeader0.001
testOrderOfMultipleTransferEncodingHeadersIsPreserved0.001
testOrderOfMultipleTransferEncodingsInSingleHeadersIsPreserved0.001
testVaryStarIsNotGeneratedByProxy0.001
testProperlyFormattedViaHeaderIsAddedToRequests0.001
testProperlyFormattedViaHeaderIsAddedToResponses0.001
testViaHeaderOnRequestProperlyRecordsClientProtocol0.001
testViaHeaderOnResponseProperlyRecordsOriginProtocol0.001
testRetainsWarningHeadersReceivedFromUpstream0.002
testUpdatesWarningHeadersOnValidation0.002
testWarnDatesAreAddedToWarningsOnLowerProtocolVersions0.001
testStripsBadlyDatedWarningsFromForwardedResponses0.002
testStripsBadlyDatedWarningsFromStoredResponses0.001
testRemovesWarningHeaderIfAllWarnValuesAreBadlyDated0.002

TestHttpCacheEntrySerializers

canSerializeEntriesWithVariantMaps0.032

TestSHA256HashingScheme

canHash0.001

TestHttpCacheEntry

testGetFirstHeaderReturnsCorrectHeader0
testGetHeadersReturnsEmptyArrayIfNoneMatch0
testGetFirstHeaderReturnsNullIfNoneMatch0
testCacheEntryWithNoVaryHeaderDoesNotHaveVariants0
testCacheEntryWithOneVaryHeaderHasVariants0
testCacheEntryWithMultipleVaryHeadersHasVariants0
testCacheEntryWithVaryStarHasVariants0
mustProvideRequestDate0
mustProvideResponseDate0
mustProvideStatusLine0
mustProvideResponseHeaders0.001
canRetrieveOriginalStatusLine0
protocolVersionComesFromOriginalStatusLine0
reasonPhraseComesFromOriginalStatusLine0
statusCodeComesFromOriginalStatusLine0
canGetOriginalRequestDate0
canGetOriginalResponseDate0
canGetOriginalResource0
canGetOriginalHeaders0
canConstructWithoutVariants0
canProvideVariantMap0
canRetrieveOriginalVariantMap0
retrievedVariantMapIsNotModifiable0
canConvertToString0
testMissingDateHeaderIsIgnored0
testMalformedDateHeaderIsIgnored0
testValidDateHeaderIsParsed0
testGetHeadersReturnsCorrectHeaders0

TestBasicHttpCache

testCanFlushCacheEntriesAtUri0.001
testRecognizesComplete200Response0
testRecognizesComplete206Response0
testRecognizesIncomplete200Response0
testIgnoresIncompleteNon200Or206Responses0
testResponsesWithoutExplicitContentLengthAreComplete0
testResponsesWithUnparseableContentLengthHeaderAreComplete0
testIncompleteResponseErrorProvidesPlainTextErrorMessage0
testIncompleteResponseErrorProvidesNonEmptyErrorMessage0
testCacheUpdateAddsVariantURIToParentEntry0.001
testStoreInCachePutsNonVariantEntryInPlace0
testTooLargeResponsesAreNotCached0.004
testSmallEnoughResponsesAreCached0.001
testGetCacheEntryReturnsNullOnCacheMiss0
testGetCacheEntryFetchesFromCacheOnCacheHitIfNoVariants0.001
testGetCacheEntryReturnsNullIfNoVariantInCache0.001
testGetCacheEntryReturnsVariantIfPresentInCache0.001
testGetVariantCacheEntriesReturnsEmptySetOnNoVariants0
testGetVariantCacheEntriesReturnsAllVariants0.001
testOriginalResponseWithNoContentSizeHeaderIsReleased0.002
testEntryUpdate0.002

TestExponentialBackingOffSchedulingStrategy

testScheduleWithSixFailedAttempts0.005
testScheduleWithMaxNumberOfFailedAttempts0.001
testScheduleWithoutPreviousError0
testScheduleWithOneFailedAttempt0.001
testScheduleWithTwoFailedAttempts0
testScheduleWithThreeFailedAttempts0
testScheduleWithFourFailedAttempts0
testScheduleWithFiveFailedAttempts0

TestHttpCacheJiraNumber1147

testIssue11470.003

TestAsynchronousValidator

testSchedulingStrategyShutdownOnClose0.004
testMarkCompleteRemovesIdentifier0.004
testRevalidateCacheEntryDoesNotPopulateIdentifierOnRejectedExecutionException0.001
testRevalidateCacheEntryProperlyCollapsesRequest0.002
testVariantsBothRevalidated0.002
testRevalidateCacheEntryEndToEnd0.003
testRevalidateCacheEntrySchedulesExecutionAndPopulatesIdentifier0.002

TestProtocolRecommendations

testDoesNotModifyContentRangeOnResponses0
testDoesNotModifyContentTypeOnRequests0
testDoesNotModifyContentTypeOnResponses0.001
testDoesNotModifyDateOnRequests0.001
testDoesNotModifyDateOnResponses0.001
testDoesNotModifyETagOnResponses0.001
testDoesNotModifyExpiresOnResponses0
testDoesNotModifyFromOnRequests0
testDoesNotModifyIfMatchOnRequests0
testDoesNotModifyIfModifiedSinceOnRequests0
testDoesNotModifyIfNoneMatchOnRequests0.001
testDoesNotModifyIfRangeOnRequests0.001
testDoesNotModifyIfUnmodifiedSinceOnRequests0.001
testDoesNotModifyLastModifiedOnResponses0.001
testDoesNotModifyLocationOnResponses0.001
testDoesNotModifyRangeOnRequests0.001
testDoesNotModifyRefererOnRequests0.002
testDoesNotModifyRetryAfterOnResponses0.001
testDoesNotModifyServerOnResponses0.002
testDoesNotModifyUserAgentOnRequests0.001
testDoesNotModifyVaryOnResponses0.002
testDoesNotModifyExtensionHeaderOnRequests0.001
testDoesNotModifyExtensionHeaderOnResponses0.001
testUsesLastModifiedDateForCacheConditionalRequests0.001
testUsesBothLastModifiedAndETagForConditionalRequestsIfAvailable0.001
testRevalidatesCachedResponseWithExpirationInThePast0.001
testRetriesValidationThatResultsInAnOlderDated304Response0.002
testSendsAllVariantEtagsInConditionalRequest0.002
testResponseToExistingVariantsUpdatesEntry0.002
testResponseToExistingVariantsIsCachedForFutureResponses0.001
variantNegotiationsDoNotIncludeEtagsForPartialResponses0.001
cachedEntryShouldNotBeUsedIfMoreRecentMentionInContentLocation0.001
responseToGetWithQueryFrom1_0OriginAndNoExpiresIsNotCached0.001
responseToGetWithQueryFrom1_0OriginVia1_1ProxyAndNoExpiresIsNotCached0
shouldInvalidateNonvariantCacheEntryForUnknownMethod0.002
shouldInvalidateAllVariantsForUnknownMethod0.003
cacheShouldUpdateWithNewCacheableResponse0.002
expiresEqualToDateWithNoCacheControlIsNotCacheable0.002
expiresPriorToDateWithNoCacheControlIsNotCacheable0.001
otherFreshnessRequestDirectivesNotAllowedWithNoCache0.001
cacheMissResultsIn504WithOnlyIfCached0.001
cacheHitOkWithOnlyIfCached0.001
returns504ForStaleEntryWithOnlyIfCached0.001
returnsStaleCacheEntryWithOnlyIfCachedAndMaxStale0.001
issues304EvenWithWeakETag0.001
testIdentityCodingIsNotUsedInContentEncodingHeader0.001
cacheGenerated304ForStrongEtagValidatorShouldNotContainAllow0.001
cacheGenerated304ForStrongDateValidatorShouldNotContainAllow0.001
cacheGenerated304ForStrongEtagValidatorShouldNotContainContentEncoding0.001
cacheGenerated304ForStrongDateValidatorShouldNotContainContentEncoding0.001
cacheGenerated304ForStrongEtagValidatorShouldNotContainContentLanguage0.001
cacheGenerated304ForStrongDateValidatorShouldNotContainContentLanguage0.001
cacheGenerated304ForStrongValidatorShouldNotContainContentLength0
cacheGenerated304ForStrongDateValidatorShouldNotContainContentLength0.001
cacheGenerated304ForStrongValidatorShouldNotContainContentMD50.001
cacheGenerated304ForStrongDateValidatorShouldNotContainContentMD50.001
cacheGenerated304ForStrongEtagValidatorShouldNotContainContentRange0.002
cacheGenerated304ForStrongDateValidatorShouldNotContainContentRange0.001
cacheGenerated304ForStrongEtagValidatorShouldNotContainContentType0.001
cacheGenerated304ForStrongDateValidatorShouldNotContainContentType0.001
cacheGenerated304ForStrongEtagValidatorShouldNotContainLastModified0.001
cacheGenerated304ForStrongDateValidatorShouldNotContainLastModified0
shouldStripAllowFromOrigin304ResponseToStrongValidation0.001
shouldStripContentEncodingFromOrigin304ResponseToStrongValidation0.001
shouldStripContentLanguageFromOrigin304ResponseToStrongValidation0
shouldStripContentLengthFromOrigin304ResponseToStrongValidation0.001
shouldStripContentMD5FromOrigin304ResponseToStrongValidation0
shouldStripContentTypeFromOrigin304ResponseToStrongValidation0.001
shouldStripContentRangeFromOrigin304ResponseToStringValidation0
shouldStripLastModifiedFromOrigin304ResponseToStrongValidation0.001
testDoesNotReturnStaleResponseIfClientExplicitlyRequestsFirstHandOneWithCacheControl0.001
testDoesNotReturnStaleResponseIfClientExplicitlyRequestsFirstHandOneWithPragma0
testDoesNotReturnStaleResponseIfClientExplicitlyRequestsFreshWithMaxAge0.001
testDoesNotReturnStaleResponseIfClientExplicitlySpecifiesLargerMaxAge0.001
testDoesNotReturnStaleResponseIfClientExplicitlyRequestsFreshWithMinFresh0.001
testDoesNotReturnStaleResponseIfClientExplicitlyRequestsFreshWithMaxStale0.001
testMayReturnStaleResponseIfClientExplicitlySpecifiesAcceptableMaxStale0.001
testReturnsCachedResponsesAppropriatelyWhenNoOriginCommunication0.001
testDoesNotAddNewWarningHeaderIfResponseArrivesStale0.001
testForwardsExistingWarningHeadersOnResponseThatArrivesStale0.001
testDoesNotModifyAcceptRangesOnResponses0.001
testDoesNotModifyAuthorizationOnRequests0
testDoesNotModifyContentLengthOnRequests0.001
testDoesNotModifyContentLengthOnResponses0.001
testDoesNotModifyContentMD5OnRequests0
testDoesNotModifyContentMD5OnResponses0.001
testDoesNotModifyContentRangeOnRequests0

TestEhcacheHttpCacheStorage

testCacheRemove0.015
testCacheGet0
testCacheGetNullEntry0
testCacheUpdateNullEntry0.001
testCacheUpdate0
testSingleCacheUpdateRetry0
testCacheUpdateFail0.001
testCachePut0.001

TestCacheEntryUpdater

testUpdateCacheEntryReturnsDifferentEntryInstance0
testHeadersAreMergedCorrectly0
testNewerHeadersReplaceExistingHeaders0.001
testNewHeadersAreAddedByMerge0
oldHeadersRetainedIfResponseOlderThanEntry0
testUpdatedEntryHasLatestRequestAndResponseDates0.001
entry1xxWarningsAreRemovedOnUpdate0
entryWithMalformedDateIsStillUpdated0.001
entryIsStillUpdatedByResponseWithMalformedDate0.002
cannotUpdateFromANon304OriginResponse0

TestAsynchronousValidationRequest

testRunCallsCachingClientAndRemovesIdentifier0.032
testRunReportsJobFailedForServerError0.001
testRunReportsJobFailedForStaleResponse0.001
testRunGracefullyHandlesProtocolException0.002
testRunGracefullyHandlesIOException0.001
testRunGracefullyHandlesRuntimeException0.001

TestMemcachedHttpCacheStorage

testSuccessfulCachePut0.021
testCachePutFailsSilentlyWhenWeCannotHashAKey0.002
testThrowsIOExceptionWhenMemcachedPutTimesOut0.001
testCachePutThrowsIOExceptionIfCannotSerializeEntry0.001
testSuccessfulCacheGet0.001
testTreatsNoneByteArrayFromMemcachedAsCacheMiss0.001
testTreatsNullFromMemcachedAsCacheMiss0.001
testTreatsAsCacheMissIfCannotReconstituteEntry0.001
testCacheRemove0.001
testTreatsAsCacheMissIfCantHashStorageKey0.001
testThrowsIOExceptionIfMemcachedTimesOutOnGet0.001
testCacheRemoveHandlesKeyHashingFailure0
testCacheRemoveThrowsIOExceptionOnMemcachedTimeout0.001
testCacheUpdateCanUpdateNullEntry0.002
testCacheUpdateOverwritesNonMatchingHashCollision0.002
testCacheUpdateCanUpdateExistingEntry0.003
testCacheUpdateThrowsExceptionsIfCASFailsEnoughTimes0.002
testCacheUpdateCanUpdateExistingEntryWithRetry0.002
testUpdateThrowsIOExceptionIfMemcachedTimesOut0.002
testThrowsExceptionOnUpdateIfCannotHashStorageKey0.001

TestCachingExec

testCacheableResponsesGoIntoCache0.051
testOlderCacheableResponsesDoNotGoIntoCache0.006
testNewerCacheableResponsesReplaceExistingCacheEntry0.004
testRequestThatCannotBeServedFromCacheCausesBackendRequest0.026
testCacheMissCausesBackendRequest0.002
testUnsuitableUnvalidatableCacheEntryCausesBackendRequest0.003
testUnsuitableValidatableCacheEntryCausesRevalidation0.002
testRevalidationCallsHandleBackEndResponseWhenNot200Or3040.002
testRevalidationUpdatesCacheEntryAndPutsItToCacheWhen304ReturningCachedResponse0.002
testSuitableCacheEntryDoesNotCauseBackendRequest0.002
testCallBackendMakesBackEndRequestAndHandlesResponse0.001
testNonCacheableResponseIsNotCachedAndIsReturnedAsIs0.002
testResponseIsGeneratedWhenCacheEntryIsUsable0.001
testNonCompliantRequestWrapsAndReThrowsProtocolException0.001
testSetsModuleGeneratedResponseContextForCacheOptionsResponse0.001
testSetsModuleGeneratedResponseContextForFatallyNoncompliantRequest0.003
testRecordsClientProtocolInViaHeaderIfRequestNotServableFromCache0.003
testSetsCacheMissContextIfRequestNotServableFromCache0.002
testSetsViaHeaderOnResponseIfRequestNotServableFromCache0.003
testSetsViaHeaderOnResponseForCacheMiss0.003
testSetsCacheHitContextIfRequestServedFromCache0.003
testSetsViaHeaderOnResponseIfRequestServedFromCache0.004
testReturns304ForIfModifiedSinceHeaderIfRequestServedFromCache0.003
testReturns304ForIfModifiedSinceHeaderIf304ResponseInCache0.004
testReturns200ForIfModifiedSinceDateIsLess0.004
testReturns200ForIfModifiedSinceDateIsInvalid0.004
testReturns304ForIfNoneMatchHeaderIfRequestServedFromCache0.003
testReturns200ForIfNoneMatchHeaderFails0.004
testReturns304ForIfNoneMatchHeaderAndIfModifiedSinceIfRequestServedFromCache0.004
testReturns200ForIfNoneMatchHeaderFailsIfModifiedSinceIgnored0.004
testSetsValidatedContextIfRequestWasSuccessfullyValidated0.004
testSetsViaHeaderIfRequestWasSuccessfullyValidated0.004
testSetsModuleResponseContextIfValidationRequiredButFailed0.003
testSetsModuleResponseContextIfValidationFailsButNotRequired0.004
testSetViaHeaderIfValidationFailsButNotRequired0.003
testReturns304ForIfNoneMatchPassesIfRequestServedFromOrigin0.003
testReturns200ForIfNoneMatchFailsIfRequestServedFromOrigin0.004
testReturns304ForIfModifiedSincePassesIfRequestServedFromOrigin0.004
testReturns200ForIfModifiedSinceFailsIfRequestServedFromOrigin0.003
testVariantMissServerIfReturns304CacheReturns2000.004
testVariantsMissServerReturns304CacheReturns3040.003
testSocketTimeoutExceptionIsNotSilentlyCatched0.002
testIsSharedCache0.001
testTreatsCacheIOExceptionsAsCacheMiss0.001
testIfOnlyIfCachedAndNoCacheEntryBackendNotCalled0.001
testIfOnlyIfCachedAndEntryNotSuitableBackendNotCalled0.002
testIfOnlyIfCachedAndEntryExistsAndIsSuitableReturnsEntry0.001
testDoesNotSetConnectionInContextOnCacheHit0.002
testSetsTargetHostInContextOnCacheHit0.001
testSetsRouteInContextOnCacheHit0.001
testSetsRequestInContextOnCacheHit0.001
testSetsResponseInContextOnCacheHit0.001
testSetsRequestSentInContextOnCacheHit0.001
testCanCacheAResponseWithoutABody0.002
testNoEntityForIfNoneMatchRequestNotYetInCache0.001
testNotModifiedResponseUpdatesCacheEntryWhenNoEntity0.002
testNotModifiedResponseWithVaryUpdatesCacheEntryWhenNoEntity0.002
testDoesNotSend304ForNonConditionalRequest0.002

TestRFC5861Compliance

testStaleIfErrorInResponseIsTrueReturnsStaleEntryWithWarning0.198
testConsumesErrorResponseWhenServingStale0.004
testStaleIfErrorInResponseYieldsToMustRevalidate0.005
testStaleIfErrorInResponseYieldsToProxyRevalidateForSharedCache0.004
testStaleIfErrorInResponseNeedNotYieldToProxyRevalidateForPrivateCache0.004
testStaleIfErrorInResponseYieldsToExplicitFreshnessRequest0.004
testStaleIfErrorInRequestIsTrueReturnsStaleEntryWithWarning0.005
testStaleIfErrorInResponseIsFalseReturnsError0.006
testStaleIfErrorInRequestIsFalseReturnsError0.006
testStaleWhileRevalidateReturnsStaleEntryWithWarning0.012
testCanAlsoServeStale304sWhileRevalidating0.004
testStaleWhileRevalidateYieldsToMustRevalidate0.006
testStaleWhileRevalidateYieldsToProxyRevalidateForSharedCache0.006
testStaleWhileRevalidateYieldsToExplicitFreshnessRequest0.005

TestRequestProtocolCompliance

doesNotModifyACompliantRequest0
removesEntityFromTRACERequest0
upgrades1_0RequestTo1_10
downgrades1_2RequestTo1_10
stripsMinFreshFromRequestIfNoCachePresent0
stripsMaxFreshFromRequestIfNoCachePresent0
stripsMaxAgeFromRequestIfNoCachePresent0
correctlyStripsMinFreshFromMiddleIfNoCache0
doesNotStripMinFreshFromRequestWithoutNoCache0

TestCachingHttpClientBuilder

testAsynchronousWorkersMax00.172

TestPrefixKeyHashingScheme

addsPrefixToBackingScheme0

TestResponseCachingPolicy

test301ResponseCodeIsCacheable0
test410ResponseCodeIsCacheable0.001
testPlain302ResponseCodeIsNotCacheable0
testPlain303ResponseCodeIsNotCacheableUnderDefaultBehavior0
testPlain303ResponseCodeIsNotCacheableEvenIf303CachingEnabled0
testPlain307ResponseCodeIsNotCacheable0.001
testIsGetWithVaryHeaderCacheable0
testIsArbitraryMethodCacheable0
testResponsesToRequestsWithNoStoreAreNotCacheable0
testResponsesWithMultipleAgeHeadersAreNotCacheable0
testResponsesWithMultipleDateHeadersAreNotCacheable0.001
testResponsesWithMalformedDateHeadersAreNotCacheable0
testResponsesWithMultipleExpiresHeadersAreNotCacheable0
testResponsesWithoutDateHeadersAreNotCacheable0
testResponseThatHasTooMuchContentIsNotCacheable0
testResponsesThatAreSmallEnoughAreCacheable0
testResponsesToGETWithQueryParamsButNoExplicitCachingAreNotCacheable0
testResponsesToGETWithQueryParamsButNoExplicitCachingAreNotCacheableEvenWhen1_0QueryCachingDisabled0
testResponsesToGETWithQueryParamsAndExplicitCachingAreCacheable0
testResponsesToGETWithQueryParamsAndExplicitCachingAreCacheableEvenWhen1_0QueryCachingDisabled0
getsWithQueryParametersDirectlyFrom1_0OriginsAreNotCacheable0
getsWithQueryParametersDirectlyFrom1_0OriginsAreNotCacheableEvenWithSetting0
getsWithQueryParametersDirectlyFrom1_0OriginsAreCacheableWithExpires0.001
getsWithQueryParametersDirectlyFrom1_0OriginsCanBeNotCacheableEvenWithExpires0
getsWithQueryParametersFrom1_0OriginsViaProxiesAreNotCacheable0
getsWithQueryParametersFrom1_0OriginsViaProxiesAreCacheableWithExpires0
getsWithQueryParametersFrom1_0OriginsViaProxiesCanNotBeCacheableEvenWithExpires0
getsWithQueryParametersFrom1_0OriginsViaExplicitProxiesAreCacheableWithExpires0
getsWithQueryParametersFrom1_0OriginsViaExplicitProxiesCanNotBeCacheableEvenWithExpires0
getsWithQueryParametersFrom1_1OriginsVia1_0ProxiesAreCacheableWithExpires0
notCacheableIfExpiresEqualsDateAndNoCacheControl0
notCacheableIfExpiresPrecedesDateAndNoCacheControl0
test302WithExplicitCachingHeaders0
test303WithExplicitCachingHeadersUnderDefaultBehavior0
test303WithExplicitCachingHeadersWhenPermittedByConfig0
test307WithExplicitCachingHeaders0
otherStatusCodesAreCacheableWithExplicitCachingHeaders0
testIsGetCacheable0
testResponsesToRequestsWithAuthorizationHeadersAreNotCacheableBySharedCache0
testResponsesToRequestsWithAuthorizationHeadersAreCacheableByNonSharedCache0
testAuthorizedResponsesWithSMaxAgeAreCacheable0
testAuthorizedResponsesWithMustRevalidateAreCacheable0
testAuthorizedResponsesWithCacheControlPublicAreCacheable0
testAuthorizedResponsesWithCacheControlMaxAgeAreNotCacheable0
test203ResponseCodeIsCacheable0
test206ResponseCodeIsNotCacheable0
test300ResponseCodeIsCacheable0
testNon206WithExplicitExpiresIsCacheable0
testNon206WithMaxAgeIsCacheable0
testNon206WithSMaxAgeIsCacheable0
testNon206WithMustRevalidateIsCacheable0
testNon206WithProxyRevalidateIsCacheable0
testNon206WithPublicCacheControlIsCacheable0
testNon206WithPrivateCacheControlIsNotCacheableBySharedCache0
test200ResponseWithPrivateCacheControlIsCacheableByNonSharedCache0
testIsGetWithNoCacheCacheable0
testIsGetWithNoStoreCacheable0
testIsGetWithNoStoreEmbeddedInListCacheable0
testIsGetWithNoCacheEmbeddedInListCacheable0
testIsGetWithNoCacheEmbeddedInListAfterFirstHeaderCacheable0
testIsGetWithNoStoreEmbeddedInListAfterFirstHeaderCacheable0
testIsGetWithAnyCacheControlCacheable0.001
testIsGetWithout200Cacheable0
testVaryStarIsNotCacheable0

TestMemcachedCacheEntryFactoryImpl

createsMemcachedCacheEntryImpls0.001

TestProtocolDeviations

testPartialContentIsNotReturnedToAClientThatDidNotAskForIt0.001
testPassesOnOrigin401ResponseWithoutWWWAuthenticateHeader0
testPassesOnOrigin405WithoutAllowHeader0.001
testPassesOnOrigin407WithoutAProxyAuthenticateHeader0.001
testOPTIONSRequestsWithBodiesAndNoContentTypeHaveOneSupplied0.002

TestProtocolAllowedBehavior

testNonSharedCacheReturnsStaleResponseWhenRevalidationFailsForProxyRevalidate0
testNonSharedCacheMayCacheResponsesWithCacheControlPrivate0

TestSizeLimitedResponseReader

testSmallResponseIsNotTooLarge0
testResponseWithNoEntityIsNotTooLarge0
testTooLargeEntityHasOriginalContentTypes0.001
testResponseCopiesAllOriginalHeaders0
testLargeResponseIsTooLarge0
testExactSizeResponseIsNotTooLarge0.001

TestCacheKeyGenerator

testGetURIWithDefaultPortAndScheme0
testGetURIWithDifferentScheme0.001
testGetURIWithDifferentPort0.001
testGetURIWithDifferentPortAndScheme0.001
testGetURIWithQueryParameters0
testGetVariantURIWithNoVaryHeaderReturnsNormalURI0
testGetVariantURIWithSingleValueVaryHeaderPrepends0
testGetVariantURIWithMissingRequestHeader0
testGetVariantURIAlphabetizesWithMultipleVaryingHeaders0
testGetVariantURIHandlesMultipleVaryHeaders0.001
testGetVariantURIHandlesMultipleLineRequestHeaders0
testEmptyPortEquivalentToDefaultPortForHttp0
testEmptyPortEquivalentToDefaultPortForHttps0
testEmptyPortEquivalentToDefaultPortForHttpsAbsoluteURI0.001
testNotProvidedPortEquivalentToDefaultPortForHttpsAbsoluteURI0
testNotProvidedPortEquivalentToDefaultPortForHttp0.001
testHostNameComparisonsAreCaseInsensitive0
testSchemeNameComparisonsAreCaseInsensitive0.001
testEmptyAbsPathIsEquivalentToSlash0
testEquivalentPathEncodingsAreEquivalent0
testEquivalentExtraPathEncodingsAreEquivalent0
testExtractsUriFromAbsoluteUriInRequest0

TestImmediateSchedulingStrategy

testRequestScheduledImmediately0.005

TestDefaultFailureCache

testResetErrorCount0
testIncrementErrorCount0
testMaxSize0

TestCacheInvalidator

testInvalidatesRequestsThatArentGETorHEAD0.044
testInvalidatesUrisInContentLocationHeadersOnPUTs0.001
testInvalidatesUrisInLocationHeadersOnPUTs0.002
testInvalidatesRelativeUrisInContentLocationHeadersOnPUTs0.001
testDoesNotInvalidateUrisInContentLocationHeadersOnPUTsToDifferentHosts0.001
testDoesNotInvalidateGETRequest0.001
testDoesNotInvalidateHEADRequest0.001
testDoesNotInvalidateRequestsWithClientCacheControlHeaders0.001
testDoesNotInvalidateRequestsWithClientPragmaHeaders0.001
testVariantURIsAreFlushedAlso0.001
testCacheFlushException0.001
doesNotFlushForResponsesWithoutContentLocation0.001
flushesEntryIfFresherAndSpecifiedByContentLocation0.002
doesNotFlushEntryForUnsuccessfulResponse0.001
flushesEntryIfFresherAndSpecifiedByNonCanonicalContentLocation0.002
flushesEntryIfFresherAndSpecifiedByRelativeContentLocation0.003
doesNotFlushEntryIfContentLocationFromDifferentHost0.002
doesNotFlushEntrySpecifiedByContentLocationIfEtagsMatch0.002
doesNotFlushEntrySpecifiedByContentLocationIfOlder0.002
doesNotFlushEntryIfNotInCache0.001
doesNotFlushEntrySpecifiedByContentLocationIfResponseHasNoEtag0.003
doesNotFlushEntrySpecifiedByContentLocationIfEntryHasNoEtag0.001
flushesEntrySpecifiedByContentLocationIfResponseHasNoDate0.002
flushesEntrySpecifiedByContentLocationIfEntryHasNoDate0.001
flushesEntrySpecifiedByContentLocationIfResponseHasMalformedDate0.002
flushesEntrySpecifiedByContentLocationIfEntryHasMalformedDate0.002

TestCachedResponseSuitabilityChecker

testNotSuitableIfFreshnessLifetimeLessThanRequestMinFresh0
testSuitableEvenIfStaleButPermittedByRequestMaxStale0.001
testNotSuitableIfStaleButTooStaleForRequestMaxStale0
testMalformedCacheControlMaxAgeRequestHeaderCausesUnsuitableEntry0
testMalformedCacheControlMinFreshRequestHeaderCausesUnsuitableEntry0.001
testSuitableIfCacheEntryIsHeuristicallyFreshEnough0.001
testSuitableIfCacheEntryIsHeuristicallyFreshEnoughByDefault0.001
testSuitableIfFreshAndAgeIsUnderRequestMaxAge0.001
testNotSuitableIfContentLengthHeaderIsWrong0
testSuitableIfCacheEntryIsFresh0.001
testNotSuitableIfCacheEntryIsNotFresh0
testNotSuitableIfRequestHasNoCache0.001
testNotSuitableIfAgeExceedsRequestMaxAge0
testSuitableIfFreshAndFreshnessLifetimeGreaterThanRequestMinFresh0

TestEhcacheProtocolRequirements

testMustIncludeWWWAuthenticateHeaderOnAnOrigin401Response0.016
testMustIncludeAllowHeaderFromAnOrigin405Response0.003
testMustIncludeProxyAuthenticateHeaderFromAnOrigin407Response0.002
testMustNotAddMultipartByteRangeContentTypeTo416Response0.003
testMustNotUseMultipartByteRangeContentTypeOnCacheGenerated416Responses0.007
testMustReturnACacheEntryIfItCanRevalidateIt0.005
testMustReturnAFreshEnoughCacheEntryIfItHasIt0.003
testMustServeAppropriateErrorOrWarningIfNoOriginCommunicationPossible0.002
testAttachesWarningHeaderWhenGeneratingStaleResponse0.002
test1xxWarningsAreDeletedAfterSuccessfulRevalidation0.01
test2xxWarningsAreNotDeletedAfterSuccessfulRevalidation0.009
testAgeHeaderPopulatedFromCacheEntryCurrentAge0.002
testHeuristicCacheOlderThan24HoursHasWarningAttached0.003
testKeepsMostRecentDateHeaderForFreshResponse0.006
testSubrangeGETWithWeakETagIsNotAllowed0.003
testPUTWithIfMatchWeakETagIsNotAllowed0.002
testPUTWithIfNoneMatchWeakETagIsNotAllowed0.001
testDELETEWithIfMatchWeakETagIsNotAllowed0.001
testDELETEWithIfNoneMatchWeakETagIsNotAllowed0.001
testSubrangeGETMustUseStrongComparisonForCachedResponse0.004
testValidationMustUseETagIfProvidedByOriginServer0.01
testConditionalRequestWhereNotAllValidatorsMatchCannotBeServedFromCache0.01
testConditionalRequestWhereAllValidatorsMatchMayBeServedFromCache0.005
testCacheWithoutSupportForRangeAndContentRangeHeadersDoesNotCacheA206Response0.002
test302ResponseWithoutExplicitCacheabilityIsNotReturnedFromCache0.003
testDoesNotModifyContentLocationHeaderFromOrigin0.003
testDoesNotModifyContentMD5HeaderFromOrigin0.003
testDoesNotModifyEtagHeaderFromOrigin0.003
testDoesNotModifyLastModifiedHeaderFromOrigin0.003
testDoesNotAddContentLocationToOriginResponse0.003
testDoesNotAddContentMD5ToOriginResponse0.002
testDoesNotAddEtagToOriginResponse0.003
testDoesNotAddLastModifiedToOriginResponse0.003
testDoesNotModifyContentLocationFromOriginOnCacheHit0.004
testDoesNotModifyContentMD5FromOriginOnCacheHit0.003
testDoesNotModifyEtagFromOriginOnCacheHit0.004
testDoesNotModifyLastModifiedFromOriginOnCacheHit0.005
testDoesNotAddContentLocationHeaderOnCacheHit0.004
testDoesNotAddContentMD5HeaderOnCacheHit0.003
testDoesNotAddETagHeaderOnCacheHit0.003
testDoesNotAddLastModifiedHeaderOnCacheHit0.004
testDoesNotModifyContentLocationHeaderOnRequest0.002
testDoesNotModifyContentMD5HeaderOnRequest0.001
testDoesNotModifyETagHeaderOnRequest0.002
testDoesNotModifyLastModifiedHeaderOnRequest0.002
testDoesNotAddContentLocationToRequestIfNotPresent0.003
testDoesNotAddContentMD5ToRequestIfNotPresent0.003
testDoesNotAddETagToRequestIfNotPresent0.002
testDoesNotAddLastModifiedToRequestIfNotPresent0.002
testDoesNotModifyExpiresHeaderFromOrigin0.004
testDoesNotModifyExpiresHeaderFromOriginOnCacheHit0.004
testExpiresHeaderMatchesDateIfAddedToOriginResponse0.002
testExpiresHeaderMatchesDateIfAddedToCacheHit0.004
testDoesNotModifyContentEncodingHeaderFromOriginResponseWithNoTransform0.002
testDoesNotModifyContentRangeHeaderFromOriginResponseWithNoTransform0.001
testDoesNotModifyContentTypeHeaderFromOriginResponseWithNoTransform0.003
testDoesNotModifyContentEncodingHeaderOnCachedResponseWithNoTransform0.004
testDoesNotModifyContentTypeHeaderOnCachedResponseWithNoTransform0.005
testDoesNotModifyContentRangeHeaderOnCachedResponseWithNoTransform0.009
testDoesNotAddContentEncodingHeaderToOriginResponseWithNoTransformIfNotPresent0.004
testDoesNotAddContentRangeHeaderToOriginResponseWithNoTransformIfNotPresent0.004
testDoesNotAddContentTypeHeaderToOriginResponseWithNoTransformIfNotPresent0.004
testDoesNotAddContentEncodingHeaderToCachedResponseWithNoTransformIfNotPresent0.006
testDoesNotAddContentRangeHeaderToCachedResponseWithNoTransformIfNotPresent0.005
testDoesNotAddContentTypeHeaderToCachedResponseWithNoTransformIfNotPresent0.006
testDoesNotAddContentEncodingToRequestIfNotPresent0.002
testDoesNotAddContentRangeToRequestIfNotPresent0.002
testDoesNotAddContentTypeToRequestIfNotPresent0.002
testDoesNotAddContentEncodingHeaderToRequestIfNotPresent0.001
testDoesNotAddContentRangeHeaderToRequestIfNotPresent0.002
testDoesNotAddContentTypeHeaderToRequestIfNotPresent0.002
testResponseIncludesCacheEntryEndToEndHeadersForResponseAfter304Validation0.007
testUpdatedEndToEndHeadersFrom304ArePassedOnResponseAndUpdatedInCacheEntry0.008
testMultiHeadersAreSuccessfullyReplacedOn304Validation0.008
testCannotCombinePartialResponseIfIncomingResponseDoesNotHaveACacheValidator0.004
testCannotCombinePartialResponseIfCacheEntryDoesNotHaveACacheValidator0.004
testCannotCombinePartialResponseIfCacheValidatorsDoNotStronglyMatch0.003
testMustDiscardLeastRecentPartialResponseIfIncomingRequestDoesNotHaveCacheValidator0.004
testMustDiscardLeastRecentPartialResponseIfCachedResponseDoesNotHaveCacheValidator0.003
testMustDiscardLeastRecentPartialResponseIfCacheValidatorsDoNotStronglyMatch0.004
testMustDiscardLeastRecentPartialResponseIfCacheValidatorsDoNotStronglyMatchEvenIfResponsesOutOfOrder0.003
testMustDiscardCachedPartialResponseIfCacheValidatorsDoNotStronglyMatchAndDateHeadersAreEqual0.003
testCannotUseVariantCacheEntryIfNotAllSelectingRequestHeadersMatch0.013
testCannotServeFromCacheForVaryStar0.005
testNonmatchingVariantCannotBeServedFromCacheUnlessConditionallyValidated0.011
testIncompleteResponseMustNotBeReturnedToClientWithoutMarkingItAs2060.002
testPutToUriInvalidatesCacheForThatUri0.006
testDeleteToUriInvalidatesCacheForThatUri0.005
testPostToUriInvalidatesCacheForThatUri0.005
testPutInvalidatesCacheForThatUriInContentLocationHeader0.006
testPutInvalidatesCacheForThatUriInLocationHeader0.006
testPutInvalidatesCacheForThatUriInRelativeContentLocationHeader0.004
testDeleteInvalidatesCacheForThatUriInContentLocationHeader0.005
testDeleteInvalidatesCacheForThatUriInRelativeContentLocationHeader0.005
testDeleteInvalidatesCacheForThatUriInLocationHeader0.004
testPostInvalidatesCacheForThatUriInContentLocationHeader0.005
testPostInvalidatesCacheForThatUriInLocationHeader0.006
testPostInvalidatesCacheForRelativeUriInContentLocationHeader0.005
testPutDoesNotInvalidateCacheForUriInContentLocationHeadersFromOtherHosts0.004
testPutDoesNotInvalidateCacheForUriInLocationHeadersFromOtherHosts0.004
testPostDoesNotInvalidateCacheForUriInContentLocationHeadersFromOtherHosts0.004
testPostDoesNotInvalidateCacheForUriInLocationHeadersFromOtherHosts0.004
testDeleteDoesNotInvalidateCacheForUriInContentLocationHeadersFromOtherHosts0.004
testDeleteDoesNotInvalidateCacheForUriInLocationHeadersFromOtherHosts0.004
testOPTIONSRequestsAreWrittenThroughToOrigin0.005
skipped
testPOSTRequestsAreWrittenThroughToOrigin0.001
testPUTRequestsAreWrittenThroughToOrigin0.002
testDELETERequestsAreWrittenThroughToOrigin0.002
testTRACERequestsAreWrittenThroughToOrigin0.001
testCONNECTRequestsAreWrittenThroughToOrigin0.002
testUnknownMethodRequestsAreWrittenThroughToOrigin0.002
testTransmitsAgeHeaderIfIncomingAgeHeaderTooBig0.002
testDoesNotModifyAllowHeaderWithUnknownMethods0.003
testSharedCacheMustNotNormallyCacheAuthorizedResponses0.004
testSharedCacheMayCacheAuthorizedResponsesWithSMaxAgeHeader0.004
testSharedCacheMustRevalidateAuthorizedResponsesWhenSMaxAgeIsZero0.006
testSharedCacheMayCacheAuthorizedResponsesWithMustRevalidate0.007
testSharedCacheMayCacheAuthorizedResponsesWithCacheControlPublic0.006
testSharedCacheMustUseNewRequestHeadersWhenRevalidatingAuthorizedResponsesWithSMaxAge0.004
testSharedCacheMustUseNewRequestHeadersWhenRevalidatingAuthorizedResponsesWithMustRevalidate0.005
testWarning110IsAddedToStaleResponses0.005
testDoesNotTransmitNoCacheDirectivesWithFieldsDownstream0.001
testCacheIsNotUsedWhenRespondingToRequestWithCacheControlNoCache0.007
testCacheMissOnGETUsesOriginResponse0.004
testHigherMajorProtocolVersionsOnRequestSwitchToTunnelBehavior0.003
testHigher1_XProtocolVersionsDowngradeTo1_10.005
testRequestsWithLowerProtocolVersionsGetUpgradedTo1_10.005
testOrderOfMultipleWarningHeadersIsPreservedOnRequests0.004
testOrderOfMultipleAllowHeadersIsPreservedOnResponses0.003
testOrderOfMultipleCacheControlHeadersIsPreservedOnResponses0.003
testOrderOfMultipleContentEncodingHeadersIsPreservedOnResponses0.003
testOrderOfMultipleContentLanguageHeadersIsPreservedOnResponses0.003
testOrderOfMultiplePragmaHeadersIsPreservedOnResponses0.004
testOrderOfMultipleViaHeadersIsPreservedOnResponses0.003
testOrderOfMultipleWWWAuthenticateHeadersIsPreservedOnResponses0.004
testUnknownResponseStatusCodesAreNotCached0.793
testUnknownHeadersOnRequestsAreForwarded0.003
testUnknownHeadersOnResponsesAreForwarded0.002
testRequestsExpecting100ContinueBehaviorShouldSetExpectHeader0.002
testRequestsNotExpecting100ContinueBehaviorShouldNotSetExpectContinueHeader0.002
testExpect100ContinueIsNotSentIfThereIsNoRequestBody0.002
testExpectHeadersAreForwardedOnRequests0.001
test100ContinueResponsesAreNotForwardedTo1_0ClientsWhoDidNotAskForThem0.001
testResponsesToOPTIONSAreNotCacheable0.002
test200ResponseToOPTIONSWithNoBodyShouldIncludeContentLengthZero0.001
testDoesNotForwardOPTIONSWhenMaxForwardsIsZeroOnAbsoluteURIRequest0.002
testDecrementsMaxForwardsWhenForwardingOPTIONSRequest0.002
testDoesNotAddAMaxForwardsHeaderToForwardedOPTIONSRequests0.001
testResponseToAHEADRequestMustNotHaveABody0.002
testHEADResponseWithUpdatedContentLengthFieldMakeACacheEntryStale0.003
testHEADResponseWithUpdatedContentMD5FieldMakeACacheEntryStale0.004
testHEADResponseWithUpdatedETagFieldMakeACacheEntryStale0.003
testHEADResponseWithUpdatedLastModifiedFieldMakeACacheEntryStale0.004
testResponsesToPOSTWithoutCacheControlOrExpiresAreNotCached0.001
testResponsesToPUTsAreNotCached0.001
testResponsesToDELETEsAreNotCached0.001
testForwardedTRACERequestsDoNotIncludeAnEntity0.002
testResponsesToTRACEsAreNotCached0.001
test204ResponsesDoNotContainMessageBodies0.002
test205ResponsesDoNotContainMessageBodies0.001
test206ResponseGeneratedFromCacheMustHaveContentRangeOrMultipartByteRangesContentType0.003
test206ResponseGeneratedFromCacheMustHaveABodyThatMatchesContentLengthHeaderIfPresent0.004
test206ResponseGeneratedFromCacheMustHaveDateHeader0.003
test206ResponseReturnedToClientMustHaveDateHeader0.001
test206ContainsETagIfA200ResponseWouldHaveIncludedIt0.003
test206ContainsContentLocationIfA200ResponseWouldHaveIncludedIt0.003
test206ResponseIncludesVariantHeadersIfValueMightDiffer0.008
test206ResponseToConditionalRangeRequestDoesNotIncludeOtherEntityHeaders0.002
test206ResponseToIfRangeWithStrongValidatorReturnsAllEntityHeaders0.005
test206ResponseIsNotCombinedWithPreviousContentIfETagDoesNotMatch0.003
test206ResponseIsNotCombinedWithPreviousContentIfLastModifiedDoesNotMatch0.004
test206ResponsesAreNotCachedIfTheCacheDoesNotSupportRangeAndContentRangeHeaders0.001
test303ResponsesAreNotCached0.001
test304ResponseDoesNotContainABody0.001
test304ResponseWithDateHeaderForwardedFromOriginIncludesDateHeader0.001
test304ResponseGeneratedFromCacheIncludesDateHeader0.003
test304ResponseGeneratedFromCacheIncludesEtagIfOriginResponseDid0.003
test304ResponseGeneratedFromCacheIncludesContentLocationIfOriginResponseDid0.003
test304ResponseGeneratedFromCacheIncludesExpiresCacheControlAndOrVaryIfResponseMightDiffer0.015
test304GeneratedFromCacheOnWeakValidatorDoesNotIncludeOtherEntityHeaders0.003
testNotModifiedOfNonCachedEntityShouldRevalidateWithUnconditionalGET0.005
testCacheEntryIsUpdatedWithNewFieldValuesIn304Response0.004
testLowerOriginResponsesUpgradedToOurVersion1_10.002
testResponseToA1_0RequestShouldUse1_10.002
testForwardsUnknownHeadersOnRequestsFromHigherProtocolVersions0.002
testTransferCodingsAreNotSentToAnHTTP_1_0Client0.002
testOrderOfMultipleAcceptHeaderValuesIsPreservedOnRequests0.002
testOrderOfMultipleAcceptCharsetHeadersIsPreservedOnRequests0.002
testOrderOfMultipleAcceptEncodingHeadersIsPreservedOnRequests0.002
testOrderOfMultipleAcceptLanguageHeadersIsPreservedOnRequests0.002
testOrderOfMultipleAllowHeadersIsPreservedOnRequests0.001
testOrderOfMultipleCacheControlHeadersIsPreservedOnRequests0.002
testOrderOfMultipleContentEncodingHeadersIsPreservedOnRequests0.001
testOrderOfMultipleContentLanguageHeadersIsPreservedOnRequests0.002
testOrderOfMultipleExpectHeadersIsPreservedOnRequests0.001
testOrderOfMultiplePragmaHeadersIsPreservedOnRequests0.002
testOrderOfMultipleViaHeadersIsPreservedOnRequests0.001
testCacheIsNotUsedWhenRespondingToRequestWithPragmaNoCache0.003
testStaleEntryWithMustRevalidateIsNotUsedWithoutRevalidatingWithOrigin0.005
testGenerates504IfCannotRevalidateAMustRevalidateEntry0.003
testStaleEntryWithProxyRevalidateOnSharedCacheIsNotUsedWithoutRevalidatingWithOrigin0.004
testGenerates504IfSharedCacheCannotRevalidateAProxyRevalidateEntry0.003
testCacheControlPrivateIsNotCacheableBySharedCache0.002
testCacheControlPrivateOnFieldIsNotReturnedBySharedCache0.002
testNoCacheCannotSatisfyASubsequentRequestWithoutRevalidation0.002
testNoCacheCannotSatisfyASubsequentRequestWithoutRevalidationEvenWithContraryIndications0.002
testNoCacheOnFieldIsNotReturnedWithoutRevalidation0.001
testNoStoreOnRequestIsNotStoredInCache0.001
testNoStoreOnRequestIsNotStoredInCacheEvenIfResponseMarkedCacheable0.001
testNoStoreOnResponseIsNotStoredInCache0.001
testNoStoreOnResponseIsNotStoredInCacheEvenWithContraryIndicators0.001
testOrderOfMultipleContentEncodingHeaderValuesIsPreserved0.002
testOrderOfMultipleParametersInContentEncodingHeaderIsPreserved0.001
testCacheDoesNotAssumeContentLocationHeaderIndicatesAnotherCacheableResource0.002
testCachedResponsesWithMissingDateHeadersShouldBeAssignedOne0.002
testMalformedExpiresHeaderIsTreatedAsStale0.004
testExpiresZeroHeaderIsTreatedAsStale0.004
testExpiresHeaderEqualToDateHeaderIsTreatedAsStale0.003
testDoesNotModifyServerResponseHeader0.002
testOrderOfMultipleTransferEncodingHeadersIsPreserved0.001
testOrderOfMultipleTransferEncodingsInSingleHeadersIsPreserved0.001
testVaryStarIsNotGeneratedByProxy0.002
testProperlyFormattedViaHeaderIsAddedToRequests0.002
testProperlyFormattedViaHeaderIsAddedToResponses0.002
testViaHeaderOnRequestProperlyRecordsClientProtocol0.002
testViaHeaderOnResponseProperlyRecordsOriginProtocol0.001
testRetainsWarningHeadersReceivedFromUpstream0.002
testUpdatesWarningHeadersOnValidation0.004
testWarnDatesAreAddedToWarningsOnLowerProtocolVersions0.002
testStripsBadlyDatedWarningsFromForwardedResponses0.002
testStripsBadlyDatedWarningsFromStoredResponses0.001
testRemovesWarningHeaderIfAllWarnValuesAreBadlyDated0.001

TestCombinedEntity

testCombinedEntityBasics0.002

TestMemcachedCacheEntryImpl

canBeCreatedEmpty0
canBeSerialized0.001
knowsItsCacheKey0.001
knowsItsCacheEntry0
canBeReconstitutedFromByteArray0.004
cannotReconstituteFromGarbage0.001

TestResponseProtocolCompliance

consumesBodyIfOriginSendsOneInResponseToHEAD0
throwsExceptionIfOriginReturnsPartialResponseWhenNotRequested0
consumesPartialContentFromOriginEvenIfNotRequested0
consumesBodyOf100ContinueResponseIfItArrives0

Failure Details

[Summary] [Package List] [Test Cases]


testOPTIONSRequestsAreWrittenThroughToOrigin
skipped: skipped
testOPTIONSRequestsAreWrittenThroughToOrigin
skipped: skipped