Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
8600396.512%10.102

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.154
info.magnolia.cms.cache.pages1000100%0.283
info.magnolia.module.cache.util4000100%0
info.magnolia.module.cache.cachepolicy7000100%0.077
info.magnolia.module.cache.filter5500394.545%8.35
info.magnolia.module.cache.setup4000100%0.002
info.magnolia.module.cache.executor7000100%0.231

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

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.283

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest7000100%0.077

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
BlockingCacheTest2000100%4.111
CacheConfigurationSetupTest2000100%3.744
CacheFilterTest1900194.737%0.105
CacheHeadersFilterTest2000100%0.043
CacheResponseWrapperTest4000100%0.008
DelegatingBlobCachedEntryTest1000100%0.002
GZipFilterTest500260%0.267
InMemoryCachedPageTest2000100%0
ResponseExpirationCalculatorTest15000100%0.002
StandaloneGZipFilterTest3000100%0.068

info.magnolia.module.cache.setup

ClassTestsErrors FailuresSkippedSuccess RateTime
RemoveCacheTempFilesTaskTest4000100%0.002

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0.022
SetExpirationHeadersTest2000100%0.02
StoreTest2000100%0.189

Test Cases

[Summary] [Package List] [Test Cases]

CacheToolsPageXssTest

testXSS0.283

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull0.002
testFlushPolicyFallbacksToFlushAllListeningPolicy0.001
testBrowserCachePolicyFallbacksToNeverPolicy0.001
testCachePolicyFallbacksToNeverPolicy0.001

DefaultTest

testSemicolonIsEscapedInParameterValues10.047
testSemicolonIsEscapedInParameterValues0.004
testRefreshWithPragmaHeader0.014
testRetrieveDefaultCacheKey0.003
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined0.003
testRefreshWithCacheControlHeader0.004
testDontSortParameterValuesInPlace0.002

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.124
testBlocking0.015
testSerialAccess0.008
testAddMoreThanMaxSize0.007

AbstractExecutorTest

testModifiedAfterRequestHeader0.021
testModifiedSameAsRequestHeader0.001
testNotModifiedAfterRequestHeader0

SetExpirationHeadersTest

testProcessCacheRequest0.019
testProcessNoCacheRequest0.001

StoreTest

testProcessCacheRequest0.064
testClearCacheWhenExceptionOccurs0.125

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.087
testLockTimeoutException4.024

CacheConfigurationSetupTest

testExecutorSetup2.674
testVoting1.07

CacheFilterTest

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

CacheHeadersFilterTest

testFilterNoCacheRequest0.022
testFilterCacheRequest0.021

CacheResponseWrapperTest

testTempFileSizeIsSameAsOriginalSize0.003
testGetLastModified0.004
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse0.001
testSetHeader0

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.002

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.03
testBufferIsFlushedAndGZipNotSetOnError0.03
skipped
testResponseIsGzippedWhenThresholdExceeded0.092
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.092
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.023

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0
testGZipIfContentIsNotGZipped0

ResponseExpirationCalculatorTest

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

StandaloneGZipFilterTest

testDoesNotByPassIfClientAcceptsGZip0.032
testBypassesIfClientDoesNotAcceptGZip0.019
testBypassesAsDictatedByVoters0.017

RemoveCacheTempFilesTaskTest

testDeleteTempFile0.001
testFolderWithCacheTempFilePrefixIsNotDeleted0
testTempFileWhichDoesNotStartWithCacheTempPrefixIsNotDeleted0
testDeleteMultipleTempFiles0.001

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0
testGzipIsSymetric0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0
testGzipActuallyCompressesAtSomePoint0

Failure Details

[Summary] [Package List] [Test Cases]


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