Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
7700396.104%14.121

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.207
info.magnolia.cms.cache.pages1000100%0.409
info.magnolia.module.cache.util4000100%0.001
info.magnolia.module.cache.cachepolicy3000100%0.067
info.magnolia.module.cache.filter5500394.545%10.971
info.magnolia.module.cache.executor6000100%1.459

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

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.409

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.001

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest3000100%0.067

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
BlockingCacheTest2000100%4.041
CacheConfigurationSetupTest2000100%5.159
CacheFilterTest1900194.737%0.153
CacheHeadersFilterTest2000100%0.055
CacheResponseWrapperTest4000100%1.099
DelegatingBlobCachedEntryTest1000100%0.003
GZipFilterTest500260%0.362
InMemoryCachedPageTest2000100%0
ResponseExpirationCalculatorTest15000100%0.002
StandaloneGZipFilterTest3000100%0.097

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0.031
SetExpirationHeadersTest2000100%0.036
StoreTest1000100%1.392

Test Cases

[Summary] [Package List] [Test Cases]

CacheToolsPageXssTest

testXSS0.409

CacheConfigurationTest

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

DefaultTest

testSemicolonIsEscapedInParameterValues0.059
testRetrieveDefaultCacheKey0.004
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined0.004

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.169
testBlocking0.018
testSerialAccess0.011
testAddMoreThanMaxSize0.009

AbstractExecutorTest

testModifiedAfterRequestHeader0.031
testModifiedSameAsRequestHeader0
testNotModifiedAfterRequestHeader0

SetExpirationHeadersTest

testProcessCacheRequest0.034
testProcessNoCacheRequest0.002

StoreTest

testClearCacheWhenExceptionOccurs1.392

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.022
testLockTimeoutException4.019

CacheConfigurationSetupTest

testExecutorSetup3.843
testVoting1.316

CacheFilterTest

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

CacheHeadersFilterTest

testFilterNoCacheRequest0.029
testFilterCacheRequest0.026

CacheResponseWrapperTest

testTempFileSizeIsSameAsOriginalSize1.093
testGetLastModified0.005
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse0
testSetHeader0.001

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.003

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.044
testBufferIsFlushedAndGZipNotSetOnError0.044
skipped
testResponseIsGzippedWhenThresholdExceeded0.121
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.121
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.032

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0
testGZipIfContentIsNotGZipped0

ResponseExpirationCalculatorTest

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

StandaloneGZipFilterTest

testDoesNotByPassIfClientAcceptsGZip0.048
testBypassesIfClientDoesNotAcceptGZip0.025
testBypassesAsDictatedByVoters0.024

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0
testGzipIsSymetric0.001
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0
testGzipActuallyCompressesAtSomePoint0

Failure Details

[Summary] [Package List] [Test Cases]


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