Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
7700396.104%15.389

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.007
info.magnolia.module.cache.ehcache4000100%1.267
info.magnolia.cms.cache.pages1000100%0.436
info.magnolia.module.cache.util4000100%0.001
info.magnolia.module.cache.cachepolicy3000100%0.073
info.magnolia.module.cache.filter5500394.545%12.019
info.magnolia.module.cache.executor6000100%1.586

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

info.magnolia.module.cache.ehcache

ClassTestsErrors FailuresSkippedSuccess RateTime
EhCacheFactoryTest4000100%1.267

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.436

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.001

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest3000100%0.073

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
BlockingCacheTest2000100%4.052
CacheConfigurationSetupTest2000100%6.094
CacheFilterTest1900194.737%0.17
CacheHeadersFilterTest2000100%0.062
CacheResponseWrapperTest4000100%1.132
DelegatingBlobCachedEntryTest1000100%0.004
GZipFilterTest500260%0.385
InMemoryCachedPageTest2000100%0.001
ResponseExpirationCalculatorTest15000100%0.003
StandaloneGZipFilterTest3000100%0.116

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0.033
SetExpirationHeadersTest2000100%0.043
StoreTest1000100%1.51

Test Cases

[Summary] [Package List] [Test Cases]

CacheToolsPageXssTest

testXSS0.436

CacheConfigurationTest

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

DefaultTest

testSemicolonIsEscapedInParameterValues0.064
testRetrieveDefaultCacheKey0.004
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined0.005

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.215
testBlocking0.028
testSerialAccess0.01
testAddMoreThanMaxSize0.014

AbstractExecutorTest

testModifiedAfterRequestHeader0.031
testModifiedSameAsRequestHeader0.001
testNotModifiedAfterRequestHeader0.001

SetExpirationHeadersTest

testProcessCacheRequest0.04
testProcessNoCacheRequest0.003

StoreTest

testClearCacheWhenExceptionOccurs1.51

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.025
testLockTimeoutException4.027

CacheConfigurationSetupTest

testExecutorSetup4.578
testVoting1.516

CacheFilterTest

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

CacheHeadersFilterTest

testFilterNoCacheRequest0.033
testFilterCacheRequest0.029

CacheResponseWrapperTest

testTempFileSizeIsSameAsOriginalSize1.126
testGetLastModified0.005
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse0.001
testSetHeader0

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.004

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.05
testBufferIsFlushedAndGZipNotSetOnError0.051
skipped
testResponseIsGzippedWhenThresholdExceeded0.123
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.123
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.038

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0
testGZipIfContentIsNotGZipped0

ResponseExpirationCalculatorTest

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

StandaloneGZipFilterTest

testDoesNotByPassIfClientAcceptsGZip0.05
testBypassesIfClientDoesNotAcceptGZip0.032
testBypassesAsDictatedByVoters0.034

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0
testGzipIsSymetric0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0.001
testGzipActuallyCompressesAtSomePoint0

Failure Details

[Summary] [Package List] [Test Cases]


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