Surefire Report

Summary

[Summary] [Package List] [Test Cases]



TestsErrors FailuresSkippedSuccess RateTime
29300299.317%2.548


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.impl.client.cache29300299.317%2.548


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

org.apache.http.impl.client.cache

ClassTestsErrors FailuresSkippedSuccess RateTime
TestCachingHttpAsyncClient5300198.113%0.441
TestAsyncProtocolRequirements23200199.569%1.931
TestHttpAsyncCacheJiraNumber11471000100%0.148
TestAsyncProtocolAllowedBehavior2000100%0.01
TestAsyncProtocolDeviations5000100%0.018


Test Cases

[Summary] [Package List] [Test Cases]

TestCachingHttpAsyncClient

testUsesVirtualHostForCacheKey 0
skipped
testReturns304ForIfNoneMatchPassesIfRequestServedFromOrigin0.264
testSetsRouteInContextOnCacheHit0.004
testVariantsMissServerReturns304CacheReturns3040.007
testReturns304ForIfModifiedSinceHeaderIfRequestServedFromCache0.007
testReturns304ForIfNoneMatchHeaderIfRequestServedFromCache0.004
testIfOnlyIfCachedAndNoCacheEntryBackendNotCalled0.002
testSocketTimeoutExceptionIsNotSilentlyCatched0.003
testIfOnlyIfCachedAndEntryNotSuitableBackendNotCalled0.003
testSetsModuleGeneratedResponseContextForCacheOptionsResponse0.002
testTreatsCacheIOExceptionsAsCacheMiss0.003
testReturns200ForIfNoneMatchHeaderFails0.005
testSetsViaHeaderOnResponseIfRequestServedFromCache0.004
testSetsCacheMissContextIfRequestNotServableFromCache0.002
testReturns200ForOptionsFollowedByGetIfAuthorizationHeaderAndSharedCache0.003
testDoesNotSetConnectionInContextOnCacheHit0.003
testNonCompliantRequestWrapsAndReThrowsProtocolException0.005
testSetsResponseInContextOnCacheHit0.003
testReturns304ForIfNoneMatchHeaderAndIfModifiedSinceIfRequestServedFromCache0.005
testReturns200ForIfNoneMatchFailsIfRequestServedFromOrigin0.004
testNewerCacheableResponsesReplaceExistingCacheEntry0.004
testReturns200ForIfModifiedSinceDateIsInvalid0.004
testSetViaHeaderIfValidationFailsButNotRequired0.002
testSetsModuleResponseContextIfValidationFailsButNotRequired0.003
testDoesNotSend304ForNonConditionalRequest0.006
testIfOnlyIfCachedAndEntryExistsAndIsSuitableReturnsEntry0.003
testNoEntityForIfNoneMatchRequestNotYetInCache0.002
testSetsCacheHitContextIfRequestServedFromCache0.003
testCanCacheAResponseWithoutABody0.002
testSetsRequestInContextOnCacheHit0.003
testResponseIsGeneratedWhenCacheEntryIsUsable0.001
testSetsModuleResponseContextIfValidationRequiredButFailed0.003
testReturns304ForIfModifiedSinceHeaderIf304ResponseInCache0.003
testSetsViaHeaderOnResponseIfRequestNotServableFromCache0.002
testVariantMissServerIfReturns304CacheReturns2000.004
testSetsRequestSentInContextOnCacheHit0.003
testIsSharedCache0.001
testSetsModuleGeneratedResponseContextForFatallyNoncompliantRequest0.001
testReturns200ForIfModifiedSinceDateIsLess0.003
testOlderCacheableResponsesDoNotGoIntoCache0.003
testSuitableCacheEntryDoesNotCauseBackendRequest0.002
testNotModifiedResponseUpdatesCacheEntryWhenNoEntity0.003
testSetsViaHeaderOnResponseForCacheMiss0.002
testSetsTargetHostInContextOnCacheHit0.003
testNonCacheableResponseIsNotCachedAndIsReturnedAsIs0.002
testSetsViaHeaderIfRequestWasSuccessfullyValidated0.003
testReturns200ForIfNoneMatchHeaderFailsIfModifiedSinceIgnored0.004
testCacheableResponsesGoIntoCache0.004
testNotModifiedResponseWithVaryUpdatesCacheEntryWhenNoEntity0.006
testSetsValidatedContextIfRequestWasSuccessfullyValidated0.006
testReturns200ForIfModifiedSinceFailsIfRequestServedFromOrigin0.006
testRecordsClientProtocolInViaHeaderIfRequestNotServableFromCache0.005
testReturns304ForIfModifiedSincePassesIfRequestServedFromOrigin0.006

TestAsyncProtocolRequirements

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

TestHttpAsyncCacheJiraNumber1147

testIssue11470.148

TestAsyncProtocolAllowedBehavior

testNonSharedCacheReturnsStaleResponseWhenRevalidationFailsForProxyRevalidate0.007
testNonSharedCacheMayCacheResponsesWithCacheControlPrivate0.003

TestAsyncProtocolDeviations

testPassesOnOrigin407WithoutAProxyAuthenticateHeader0.006
testPassesOnOrigin401ResponseWithoutWWWAuthenticateHeader0.003
testOPTIONSRequestsWithBodiesAndNoContentTypeHaveOneSupplied0.005
testPassesOnOrigin405WithoutAllowHeader0.002
testPartialContentIsNotReturnedToAClientThatDidNotAskForIt0.002


Failure Details

[Summary] [Package List] [Test Cases]



testUsesVirtualHostForCacheKey
skipped: skipped
testOPTIONSRequestsAreWrittenThroughToOrigin
skipped: skipped