Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
96800299.793%3.617

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.cache25000100%0.008
org.apache.http.impl.client.cache.memcached29000100%0.073
org.apache.http.impl.client.cache.ehcache24000199.583%1.586
org.apache.http.impl.client.cache67400199.852%1.95

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

org.apache.http.client.cache

ClassTestsErrors FailuresSkippedSuccess RateTime
TestHttpCacheEntry25000100%0.008

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

ClassTestsErrors FailuresSkippedSuccess RateTime
TestSHA256HashingScheme1000100%0.001
TestMemcachedHttpCacheStorage20000100%0.065
TestPrefixKeyHashingScheme1000100%0
TestMemcachedCacheEntryFactoryImpl1000100%0.001
TestMemcachedCacheEntryImpl6000100%0.006

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

ClassTestsErrors FailuresSkippedSuccess RateTime
TestEhcacheHttpCacheStorage8000100%0.016
TestEhcacheProtocolRequirements23200199.569%1.57

org.apache.http.impl.client.cache

ClassTestsErrors FailuresSkippedSuccess RateTime
TestConditionalRequestBuilder17000100%0.003
TestCacheableRequestPolicy4000100%0.002
TestCachedHttpResponseGenerator7000100%0.001
TestCacheValidityPolicy45000100%0.014
TestWarningValue17000100%0.004
TestProtocolRequirements23200199.569%0.704
TestHttpCacheEntrySerializers1000100%0.016
TestBasicHttpCache21000100%0.015
TestHttpCacheJiraNumber11471000100%0.002
TestAsynchronousValidator6000100%0.018
TestProtocolRecommendations86000100%0.088
TestCacheEntryUpdater10000100%0.002
TestAsynchronousValidationRequest3000100%0.007
TestRFC5861Compliance14000100%0.307
TestRequestProtocolCompliance9000100%0.001
TestCachingHttpClient69000100%0.621
TestResponseCachingPolicy52000100%0.018
TestProtocolDeviations5000100%0.005
TestProtocolAllowedBehavior2000100%0.001
TestSizeLimitedResponseReader6000100%0.004
TestCacheKeyGenerator22000100%0.012
TestCacheInvalidator26000100%0.095
TestCachedResponseSuitabilityChecker14000100%0.007
TestCombinedEntity1000100%0.002
TestResponseProtocolCompliance4000100%0.001

Test Cases

[Summary] [Package List] [Test Cases]

TestConditionalRequestBuilder

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

TestCacheableRequestPolicy

testIsArbitraryMethodServableFromCache0
testIsGetServableFromCache0
testIsGetWithCacheControlServableFromCache0
testIsGetWithPragmaServableFromCache0

TestCachedHttpResponseGenerator

testContentLengthIsNotAddedWhenTransferEncodingIsPresent0
testResponseHasContentLength0
testResponseStatusCodeMatchesCacheEntry0
testAgeHeaderIsPopulatedWithCurrentAgeOfCacheEntryIfNonZero0
testAgeHeaderIsNotPopulatedIfCurrentAgeOfCacheEntryIsZero0
testAgeHeaderIsPopulatedWithMaxAgeIfCurrentAgeTooBig0
testResponseMatchesCacheEntry0

TestCacheValidityPolicy

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

TestWarningValue

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

TestProtocolRequirements

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

TestHttpCacheEntrySerializers

canSerializeEntriesWithVariantMaps0.016

TestSHA256HashingScheme

canHash0.001

TestHttpCacheEntry

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

TestBasicHttpCache

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

TestHttpCacheJiraNumber1147

testIssue11470.001

TestAsynchronousValidator

testRevalidateCacheEntrySchedulesExecutionAndPopulatesIdentifier0.007
testMarkCompleteRemovesIdentifier0.002
testRevalidateCacheEntryDoesNotPopulateIdentifierOnRejectedExecutionException0.002
testRevalidateCacheEntryProperlyCollapsesRequest0.002
testRevalidateCacheEntryEndToEnd0.002
testVariantsBothRevalidated0.003

TestProtocolRecommendations

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

TestEhcacheHttpCacheStorage

testCacheRemove0.009
testCachePut0.001
testSingleCacheUpdateRetry0.001
testCacheUpdateFail0.001
testCacheGet0
testCacheGetNullEntry0
testCacheUpdateNullEntry0.002
testCacheUpdate0.001

TestCacheEntryUpdater

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

TestAsynchronousValidationRequest

testRunCallsCachingClientAndRemovesIdentifier0.006
testRunGracefullyHandlesProtocolException0.001
testRunGracefullyHandlesIOException0

TestMemcachedHttpCacheStorage

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

TestRFC5861Compliance

testStaleIfErrorInResponseIsTrueReturnsStaleEntryWithWarning0.2
testConsumesErrorResponseWhenServingStale0.005
testStaleIfErrorInResponseYieldsToMustRevalidate0.004
testStaleIfErrorInResponseYieldsToProxyRevalidateForSharedCache0.004
testStaleIfErrorInResponseNeedNotYieldToProxyRevalidateForPrivateCache0.004
testStaleIfErrorInResponseYieldsToExplicitFreshnessRequest0.005
testStaleIfErrorInRequestIsTrueReturnsStaleEntryWithWarning0.004
testStaleIfErrorInResponseIsFalseReturnsError0.004
testStaleIfErrorInRequestIsFalseReturnsError0.005
testStaleWhileRevalidateReturnsStaleEntryWithWarning0.009
testCanAlsoServeStale304sWhileRevalidating0.005
testStaleWhileRevalidateYieldsToMustRevalidate0.007
testStaleWhileRevalidateYieldsToProxyRevalidateForSharedCache0.005
testStaleWhileRevalidateYieldsToExplicitFreshnessRequest0.005

TestRequestProtocolCompliance

doesNotModifyACompliantRequest0
removesEntityFromTRACERequest0
upgrades1_0RequestTo1_10
downgrades1_2RequestTo1_10
stripsMinFreshFromRequestIfNoCachePresent0
stripsMaxFreshFromRequestIfNoCachePresent0
stripsMaxAgeFromRequestIfNoCachePresent0
doesNotStripMinFreshFromRequestWithoutNoCache0
correctlyStripsMinFreshFromMiddleIfNoCache0

TestCachingHttpClient

testReturns304ForIfNoneMatchHeaderIfRequestServedFromCache0.097
testReturns200ForIfNoneMatchHeaderFails0.006
testReturns304ForIfNoneMatchHeaderAndIfModifiedSinceIfRequestServedFromCache0.004
testReturns200ForIfNoneMatchHeaderFailsIfModifiedSinceIgnored0.008
testSetsValidatedContextIfRequestWasSuccessfullyValidated0.006
testSetsViaHeaderIfRequestWasSuccessfullyValidated0.005
testSetsModuleResponseContextIfValidationRequiredButFailed0.004
testSetsModuleResponseContextIfValidationFailsButNotRequired0.004
testSetViaHeaderIfValidationFailsButNotRequired0.005
testReturns304ForIfNoneMatchPassesIfRequestServedFromOrigin0.005
testReturns200ForIfNoneMatchFailsIfRequestServedFromOrigin0.005
testReturns304ForIfModifiedSincePassesIfRequestServedFromOrigin0.006
testReturns200ForIfModifiedSinceFailsIfRequestServedFromOrigin0.005
testVariantMissServerIfReturns304CacheReturns2000.007
testVariantsMissServerReturns304CacheReturns3040.009
testIsSharedCache0.006
testTreatsCacheIOExceptionsAsCacheMiss0.005
testIfOnlyIfCachedAndNoCacheEntryBackendNotCalled0.002
testIfOnlyIfCachedAndEntryNotSuitableBackendNotCalled0.003
testIfOnlyIfCachedAndEntryExistsAndIsSuitableReturnsEntry0.004
testAllowsBackendToSetHttpContextVariablesOnCacheMiss0.166
testDoesNotSetConnectionInContextOnCacheHit0.01
testDoesNotSetProxyHostInContextOnCacheHit0.006
testSetsTargetHostInContextOnCacheHit0.006
testSetsRequestInContextOnCacheHit0.006
testSetsResponseInContextOnCacheHit0.006
testSetsRequestSentInContextOnCacheHit0.006
testAllowsBackendToSetContextVariablesOnRevalidation0.007
testCanCacheAResponseWithoutABody0.008
testNoEntityForIfNoneMatchRequestNotYetInCache0.004
testNotModifiedResponseUpdatesCacheEntryWhenNoEntity0.004
testNotModifiedResponseWithVaryUpdatesCacheEntryWhenNoEntity0.005
testDoesNotSend304ForNonConditionalRequest0.005
testCacheableResponsesGoIntoCache0.003
testOlderCacheableResponsesDoNotGoIntoCache0.005
testNewerCacheableResponsesReplaceExistingCacheEntry0.005
testRequestThatCannotBeServedFromCacheCausesBackendRequest0.052
testCacheMissCausesBackendRequest0.002
testUnsuitableUnvalidatableCacheEntryCausesBackendRequest0.003
testUnsuitableValidatableCacheEntryCausesRevalidation0.002
testRevalidationCallsHandleBackEndResponseWhenNot200Or3040.002
testRevalidationUpdatesCacheEntryAndPutsItToCacheWhen304ReturningCachedResponse0.003
testSuitableCacheEntryDoesNotCauseBackendRequest0.002
testCallBackendMakesBackEndRequestAndHandlesResponse0.003
testNonCacheableResponseIsNotCachedAndIsReturnedAsIs0.003
testCallsSelfForExecuteOnHostRequestWithNullContext0.002
testCallsSelfWithDefaultContextForExecuteOnHostRequestWithHandler0.002
testCallsSelfOnExecuteHostRequestWithHandlerAndContext0.003
testConsumesEntityOnExecuteWithException0.003
testCallsSelfWithNullContextOnExecuteUriRequest0.003
testCallsSelfWithExtractedHostOnExecuteUriRequestWithContext0.002
testCallsSelfWithNullContextOnExecuteUriRequestWithHandler0.002
testCallsSelfAndRunsHandlerOnExecuteUriRequestWithHandlerAndContext0.001
testUsesBackendsConnectionManager0.001
testUsesBackendsHttpParams0.002
testResponseIsGeneratedWhenCacheEntryIsUsable0.002
testNonCompliantRequestWrapsAndReThrowsProtocolException0.005
testSetsModuleGeneratedResponseContextForCacheOptionsResponse0.009
testSetsModuleGeneratedResponseContextForFatallyNoncompliantRequest0.002
testRecordsClientProtocolInViaHeaderIfRequestNotServableFromCache0.005
testSetsCacheMissContextIfRequestNotServableFromCache0.002
testSetsViaHeaderOnResponseIfRequestNotServableFromCache0.002
testSetsViaHeaderOnResponseForCacheMiss0.002
testSetsCacheHitContextIfRequestServedFromCache0.004
testSetsViaHeaderOnResponseIfRequestServedFromCache0.005
testReturns304ForIfModifiedSinceHeaderIfRequestServedFromCache0.003
testReturns304ForIfModifiedSinceHeaderIf304ResponseInCache0.005
testReturns200ForIfModifiedSinceDateIsLess0.005
testReturns200ForIfModifiedSinceDateIsInvalid0.005

TestPrefixKeyHashingScheme

addsPrefixToBackingScheme0

TestResponseCachingPolicy

testPlain307ResponseCodeIsNotCacheable0
testNon206WithExplicitExpiresIsCacheable0
testNon206WithMaxAgeIsCacheable0
testNon206WithSMaxAgeIsCacheable0
testNon206WithMustRevalidateIsCacheable0
testNon206WithProxyRevalidateIsCacheable0
testNon206WithPublicCacheControlIsCacheable0
testNon206WithPrivateCacheControlIsNotCacheableBySharedCache0
test200ResponseWithPrivateCacheControlIsCacheableByNonSharedCache0
testIsGetWithNoCacheCacheable0
testIsGetWithNoStoreCacheable0
testIsGetWithNoStoreEmbeddedInListCacheable0
testIsGetWithNoCacheEmbeddedInListCacheable0.001
testIsGetWithNoCacheEmbeddedInListAfterFirstHeaderCacheable0
testIsGetWithNoStoreEmbeddedInListAfterFirstHeaderCacheable0
testIsGetWithAnyCacheControlCacheable0
testIsGetWithout200Cacheable0
testVaryStarIsNotCacheable0
testIsGetWithVaryHeaderCacheable0
testIsArbitraryMethodCacheable0
testResponsesToRequestsWithNoStoreAreNotCacheable0
testResponsesWithMultipleAgeHeadersAreNotCacheable0
testResponsesWithMultipleDateHeadersAreNotCacheable0
testResponsesWithMalformedDateHeadersAreNotCacheable0
testResponsesWithMultipleExpiresHeadersAreNotCacheable0
testResponsesWithoutDateHeadersAreNotCacheable0
testResponseThatHasTooMuchContentIsNotCacheable0
testResponsesThatAreSmallEnoughAreCacheable0
testResponsesToGETWithQueryParamsButNoExplicitCachingAreNotCacheable0
testResponsesToGETWithQueryParamsAndExplicitCachingAreCacheable0.001
getsWithQueryParametersDirectlyFrom1_0OriginsAreNotCacheable0
getsWithQueryParametersDirectlyFrom1_0OriginsAreNotCacheableEvenWithExpires0
getsWithQueryParametersFrom1_0OriginsViaProxiesAreNotCacheable0.002
getsWithQueryParametersFrom1_0OriginsViaProxiesAreNotCacheableEvenWithExpires0.001
getsWithQueryParametersFrom1_0OriginsViaExplicitProxiesAreNotCacheableEvenWithExpires0
getsWithQueryParametersFrom1_1OriginsVia1_0ProxiesAreCacheableWithExpires0
notCacheableIfExpiresEqualsDateAndNoCacheControl0
notCacheableIfExpiresPrecedesDateAndNoCacheControl0
otherStatusCodesAreCacheableWithExplicitCachingHeaders0
testIsGetCacheable0
test203ResponseCodeIsCacheable0
testResponsesToRequestsWithAuthorizationHeadersAreNotCacheableBySharedCache0
testResponsesToRequestsWithAuthorizationHeadersAreCacheableByNonSharedCache0
testAuthorizedResponsesWithSMaxAgeAreCacheable0
testAuthorizedResponsesWithMustRevalidateAreCacheable0
testAuthorizedResponsesWithCacheControlPublicAreCacheable0
testAuthorizedResponsesWithCacheControlMaxAgeAreNotCacheable0.001
test206ResponseCodeIsNotCacheable0
test300ResponseCodeIsCacheable0
test301ResponseCodeIsCacheable0
test410ResponseCodeIsCacheable0
testPlain302ResponseCodeIsNotCacheable0

TestMemcachedCacheEntryFactoryImpl

createsMemcachedCacheEntryImpls0.001

TestProtocolDeviations

testOPTIONSRequestsWithBodiesAndNoContentTypeHaveOneSupplied0.002
testPartialContentIsNotReturnedToAClientThatDidNotAskForIt0
testPassesOnOrigin401ResponseWithoutWWWAuthenticateHeader0
testPassesOnOrigin405WithoutAllowHeader0.001
testPassesOnOrigin407WithoutAProxyAuthenticateHeader0

TestProtocolAllowedBehavior

testNonSharedCacheReturnsStaleResponseWhenRevalidationFailsForProxyRevalidate0
testNonSharedCacheMayCacheResponsesWithCacheControlPrivate0.001

TestSizeLimitedResponseReader

testLargeResponseIsTooLarge0
testExactSizeResponseIsNotTooLarge0.001
testSmallResponseIsNotTooLarge0
testResponseWithNoEntityIsNotTooLarge0
testTooLargeEntityHasOriginalContentTypes0.002
testResponseCopiesAllOriginalHeaders0.001

TestCacheKeyGenerator

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

TestCacheInvalidator

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

TestCachedResponseSuitabilityChecker

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

TestEhcacheProtocolRequirements

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

TestCombinedEntity

testCombinedEntityBasics0.002

TestMemcachedCacheEntryImpl

canBeSerialized0.001
canBeCreatedEmpty0
knowsItsCacheKey0
knowsItsCacheEntry0
canBeReconstitutedFromByteArray0.003
cannotReconstituteFromGarbage0

TestResponseProtocolCompliance

consumesBodyIfOriginSendsOneInResponseToHEAD0
throwsExceptionIfOriginReturnsPartialResponseWhenNotRequested0.001
consumesPartialContentFromOriginEvenIfNotRequested0
consumesBodyOf100ContinueResponseIfItArrives0

Failure Details

[Summary] [Package List] [Test Cases]


testOPTIONSRequestsAreWrittenThroughToOrigin
skipped: skipped
testOPTIONSRequestsAreWrittenThroughToOrigin
skipped: skipped