Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
8400396.429%9.441

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.004
info.magnolia.module.cache.ehcache4000100%1.134
info.magnolia.cms.cache.pages1000100%0.256
info.magnolia.module.cache.util4000100%0.001
info.magnolia.module.cache.cachepolicy5000100%0.05
info.magnolia.module.cache.filter5500394.545%7.799
info.magnolia.module.cache.setup4000100%0.003
info.magnolia.module.cache.executor7000100%0.194

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

info.magnolia.module.cache.ehcache

ClassTestsErrors FailuresSkippedSuccess RateTime
EhCacheFactoryTest4000100%1.134

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.256

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.001

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest5000100%0.05

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
BlockingCacheTest2000100%4.097
CacheConfigurationSetupTest2000100%3.256
CacheFilterTest1900194.737%0.102
CacheHeadersFilterTest2000100%0.037
CacheResponseWrapperTest4000100%0.006
DelegatingBlobCachedEntryTest1000100%0.003
GZipFilterTest500260%0.238
InMemoryCachedPageTest2000100%0
ResponseExpirationCalculatorTest15000100%0.001
StandaloneGZipFilterTest3000100%0.059

info.magnolia.module.cache.setup

ClassTestsErrors FailuresSkippedSuccess RateTime
RemoveCacheTempFilesTaskTest4000100%0.003

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0.019
SetExpirationHeadersTest2000100%0.027
StoreTest2000100%0.148

Test Cases

[Summary] [Package List] [Test Cases]

CacheToolsPageXssTest

testXSS0.256

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull0.002
testFlushPolicyFallbacksToFlushAllListeningPolicy0.001
testBrowserCachePolicyFallbacksToNeverPolicy0.001
testCachePolicyFallbacksToNeverPolicy0

DefaultTest

testSemicolonIsEscapedInParameterValues10.039
testSemicolonIsEscapedInParameterValues0.003
testRetrieveDefaultCacheKey0.002
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined0.003
testDontSortParameterValuesInPlace0.003

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.105
testBlocking0.015
testSerialAccess0.008
testAddMoreThanMaxSize0.006

AbstractExecutorTest

testModifiedAfterRequestHeader0.018
testModifiedSameAsRequestHeader0.001
testNotModifiedAfterRequestHeader0

SetExpirationHeadersTest

testProcessCacheRequest0.026
testProcessNoCacheRequest0.001

StoreTest

testProcessCacheRequest0.055
testClearCacheWhenExceptionOccurs0.093

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.082
testLockTimeoutException4.015

CacheConfigurationSetupTest

testExecutorSetup2.408
testVoting0.848

CacheFilterTest

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

CacheHeadersFilterTest

testFilterNoCacheRequest0.019
testFilterCacheRequest0.018

CacheResponseWrapperTest

testTempFileSizeIsSameAsOriginalSize0.002
testGetLastModified0.003
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse0.001
testSetHeader0

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.003

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.025
testBufferIsFlushedAndGZipNotSetOnError0.025
skipped
testResponseIsGzippedWhenThresholdExceeded0.084
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.084
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.02

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0
testGZipIfContentIsNotGZipped0

ResponseExpirationCalculatorTest

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

StandaloneGZipFilterTest

testDoesNotByPassIfClientAcceptsGZip0.029
testBypassesIfClientDoesNotAcceptGZip0.015
testBypassesAsDictatedByVoters0.015

RemoveCacheTempFilesTaskTest

testDeleteTempFile0.001
testFolderWithCacheTempFilePrefixIsNotDeleted0
testTempFileWhichDoesNotStartWithCacheTempPrefixIsNotDeleted0.001
testDeleteMultipleTempFiles0.001

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0
testGzipIsSymetric0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0
testGzipActuallyCompressesAtSomePoint0

Failure Details

[Summary] [Package List] [Test Cases]


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