Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
8600396.512%12.082

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.005
info.magnolia.module.cache.ehcache4000100%1.208
info.magnolia.cms.cache.pages1000100%0.379
info.magnolia.module.cache.util4000100%0.002
info.magnolia.module.cache.cachepolicy7000100%0.095
info.magnolia.module.cache.filter5500394.545%10.092
info.magnolia.module.cache.setup4000100%0.006
info.magnolia.module.cache.executor7000100%0.295

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.005

info.magnolia.module.cache.ehcache

ClassTestsErrors FailuresSkippedSuccess RateTime
EhCacheFactoryTest4000100%1.208

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.379

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.002

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest7000100%0.095

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
BlockingCacheTest2000100%4.135
CacheConfigurationSetupTest2000100%5.19
CacheFilterTest1900194.737%0.161
CacheHeadersFilterTest2000100%0.062
CacheResponseWrapperTest4000100%0.01
DelegatingBlobCachedEntryTest1000100%0.005
GZipFilterTest500260%0.438
InMemoryCachedPageTest2000100%0
ResponseExpirationCalculatorTest15000100%0.002
StandaloneGZipFilterTest3000100%0.089

info.magnolia.module.cache.setup

ClassTestsErrors FailuresSkippedSuccess RateTime
RemoveCacheTempFilesTaskTest4000100%0.006

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0.032
SetExpirationHeadersTest2000100%0.025
StoreTest2000100%0.238

Test Cases

[Summary] [Package List] [Test Cases]

CacheToolsPageXssTest

testXSS0.379

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull0.003
testFlushPolicyFallbacksToFlushAllListeningPolicy0.001
testBrowserCachePolicyFallbacksToNeverPolicy0.001
testCachePolicyFallbacksToNeverPolicy0

DefaultTest

testSemicolonIsEscapedInParameterValues10.058
testSemicolonIsEscapedInParameterValues0.004
testRefreshWithPragmaHeader0.017
testRetrieveDefaultCacheKey0.004
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined0.004
testRefreshWithCacheControlHeader0.005
testDontSortParameterValuesInPlace0.003

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.17
testBlocking0.018
testSerialAccess0.01
testAddMoreThanMaxSize0.01

AbstractExecutorTest

testModifiedAfterRequestHeader0.03
testModifiedSameAsRequestHeader0.001
testNotModifiedAfterRequestHeader0.001

SetExpirationHeadersTest

testProcessCacheRequest0.024
testProcessNoCacheRequest0.001

StoreTest

testProcessCacheRequest0.081
testClearCacheWhenExceptionOccurs0.157

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.115
testLockTimeoutException4.02

CacheConfigurationSetupTest

testExecutorSetup3.711
testVoting1.479

CacheFilterTest

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

CacheHeadersFilterTest

testFilterNoCacheRequest0.031
testFilterCacheRequest0.031

CacheResponseWrapperTest

testTempFileSizeIsSameAsOriginalSize0.003
testGetLastModified0.006
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse0
testSetHeader0.001

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.005

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.044
testBufferIsFlushedAndGZipNotSetOnError0.045
skipped
testResponseIsGzippedWhenThresholdExceeded0.16
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.16
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.029

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0
testGZipIfContentIsNotGZipped0

ResponseExpirationCalculatorTest

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

StandaloneGZipFilterTest

testDoesNotByPassIfClientAcceptsGZip0.041
testBypassesIfClientDoesNotAcceptGZip0.023
testBypassesAsDictatedByVoters0.025

RemoveCacheTempFilesTaskTest

testDeleteTempFile0.003
testFolderWithCacheTempFilePrefixIsNotDeleted0.001
testTempFileWhichDoesNotStartWithCacheTempPrefixIsNotDeleted0.001
testDeleteMultipleTempFiles0.001

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0.001
testGzipIsSymetric0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0
testGzipActuallyCompressesAtSomePoint0.001

Failure Details

[Summary] [Package List] [Test Cases]


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