Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
7700396.104%14.199

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


Package List

[Summary] [Package List] [Test Cases]


PackageTestsErrors FailuresSkippedSuccess RateTime
info.magnolia.module.cache4000100%0.002
info.magnolia.cms.cache.pages1000100%0.015
info.magnolia.module.cache.ehcache4000100%1.061
info.magnolia.module.cache.util4000100%0.002
info.magnolia.module.cache.cachepolicy3000100%0.011
info.magnolia.module.cache.filter5500394.545%12.562
info.magnolia.module.cache.executor6000100%0.546

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

info.magnolia.module.cache

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheConfigurationTest4000100%0.002

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.015

info.magnolia.module.cache.ehcache

ClassTestsErrors FailuresSkippedSuccess RateTime
EhCacheFactoryTest4000100%1.061

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.002

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest3000100%0.011

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
StandaloneGZipFilterTest3000100%0.901
InMemoryCachedPageTest2000100%0.013
CacheHeadersFilterTest2000100%0.117
CacheFilterTest1900194.737%0.297
GZipFilterTest500260%0.49
DelegatingBlobCachedEntryTest1000100%0.013
CacheConfigurationSetupTest2000100%5.812
CacheResponseWrapperTest4000100%0.572
ResponseExpirationCalculatorTest15000100%0.002
BlockingCacheTest2000100%4.345

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0
SetExpirationHeadersTest2000100%0
StoreTest1000100%0.546

Test Cases

[Summary] [Package List] [Test Cases]

StandaloneGZipFilterTest

testDoesNotByPassIfClientAcceptsGZip0.804
testBypassesIfClientDoesNotAcceptGZip0.051
testBypassesAsDictatedByVoters0.046

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0.012
testGZipIfContentIsNotGZipped0.001

CacheHeadersFilterTest

testFilterNoCacheRequest0.05
testFilterCacheRequest0.067

CacheFilterTest

testFilterUsesGivenConfigAndCacheName0.116
testServesUnzippedContentAndRemovesGzipHeadersIfClientDoesNotAcceptGZipEncoding0.017
testDontJustSends304WithNoBodyIfRequestHeadersAskForItButResponseIsCommitted0.012
testServesGZippedContentIfClientAcceptsGZipEncoding0.013
testJustSends304WithNoBodyIfRequestHeadersAskForIt0.007
testCachedErrorsAreServed0.007
testPageShouldBeServedIfIfNoneMatchHeaderWasPassed0.013
testErrorsAreCached0.015
testRedirectsAreCached0.009
testBlindlyObeysCachePolicyAndGetsStuffOutOfCacheWhenAskedToDoSo0.013
test304IsNotCached0.005
testStoresCompressedInCacheAndRenders0.008
testIfWeAreNotWriteContentToResponseTwiceWhenTimeToLiveInSecondsIsZero0.015
testLastModifiedHeaderCanBeOverriddenByFurtherFiltersAndIsProperlyStoredAndReturned0.01
testDoesNothingIfCachePolicyCommandsToBypass0.005
testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE60.006
skipped
testCachedRedirectsAreServed0.007
testJustSends304WithNoBodyIfRequestHeadersAskForItEvenOnCommitedResponse0.011
testStoresInCacheAndRenders0.008

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.051
testBufferIsFlushedAndGZipNotSetOnError0.051
skipped
testResponseIsGzippedWhenThresholdExceeded0.172
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.172
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.044

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.013

CacheConfigurationSetupTest

testExecutorSetup4.449
testVoting1.363

CacheResponseWrapperTest

testTempFileSizeIsSameAsOriginalSize0.566
testGetLastModified0.006
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse0
testSetHeader0

ResponseExpirationCalculatorTest

testDetectsSharedCacheMaxAge0
testWontCacheWhenCacheControlNoCache0
testDetectsExpiresAsInt0
testChoosesMostRestrictiveCacheControlMaxAge0
testWontCacheWhenPragmaNoCache0
testDetectsCacheControlMaxAge0
testDetectsExpiresAsLong0
testDetectsExpiresAsString0.001
testWontCacheWhenCacheControlPrivate0
testChoosesMostRestrictiveSharedCache0
testSharedCacheMaxAgeOverridesExpires0
testChoosesMostRestrictiveExpires0
testCacheControlMaxAgeOverridesExpires0
testConsumesCacheHeaders0.001
testSharedCacheMaxAgeOverridesCacheControlMaxAge0

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.298
testLockTimeoutException4.047

AbstractExecutorTest

testModifiedAfterRequestHeader0
testModifiedSameAsRequestHeader0
testNotModifiedAfterRequestHeader0

SetExpirationHeadersTest

testProcessCacheRequest0
testProcessNoCacheRequest0

StoreTest

testClearCacheWhenExceptionOccurs0.546

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull0
testFlushPolicyFallbacksToFlushAllListeningPolicy0
testBrowserCachePolicyFallbacksToNeverPolicy0
testCachePolicyFallbacksToNeverPolicy0

DefaultTest

testSemicolonIsEscapedInParameterValues0.005
testRetrieveDefaultCacheKey0.003
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined0.003

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0
testGzipIsSymetric0.001
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0
testGzipActuallyCompressesAtSomePoint0.001

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.017
testBlocking0.021
testSerialAccess0.008
testAddMoreThanMaxSize0.015

CacheToolsPageXssTest

testXSS0.015

Failure Details

[Summary] [Package List] [Test Cases]


testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE6
skipped: skipped
testBufferIsFlushedAndGZipNotSetOnError
skipped: skipped
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters
skipped: skipped