Surefire Report

Summary

[Summary] [Package List] [Test Cases]



TestsErrors FailuresSkippedSuccess RateTime
29300398.976%2.071


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.cache29300398.976%2.071


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
TestHttpAsyncCacheJiraNumber114710010%0
TestAsyncProtocolAllowedBehavior2000100%0
TestCachingHttpAsyncClient5300198.113%0.307
TestAsyncProtocolRequirements23200199.569%1.75
TestAsyncProtocolDeviations5000100%0.014


Test Cases

[Summary] [Package List] [Test Cases]

TestHttpAsyncCacheJiraNumber1147

testIssue1147 0
skipped

TestAsyncProtocolAllowedBehavior

testNonSharedCacheReturnsStaleResponseWhenRevalidationFailsForProxyRevalidate0
testNonSharedCacheMayCacheResponsesWithCacheControlPrivate0

TestCachingHttpAsyncClient

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

TestAsyncProtocolRequirements

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

TestAsyncProtocolDeviations

testOPTIONSRequestsWithBodiesAndNoContentTypeHaveOneSupplied0.004
testPartialContentIsNotReturnedToAClientThatDidNotAskForIt0.002
testPassesOnOrigin401ResponseWithoutWWWAuthenticateHeader0.002
testPassesOnOrigin405WithoutAllowHeader0.006
testPassesOnOrigin407WithoutAProxyAuthenticateHeader0


Failure Details

[Summary] [Package List] [Test Cases]



testIssue1147
skipped: skipped
testUsesVirtualHostForCacheKey
skipped: skipped
testOPTIONSRequestsAreWrittenThroughToOrigin
skipped: skipped