Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
7800396.154%12.994

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.875
info.magnolia.cms.cache.pages1000100%0.416
info.magnolia.module.cache.util4000100%0.001
info.magnolia.module.cache.cachepolicy3000100%0.068
info.magnolia.module.cache.filter5500394.545%10.3
info.magnolia.module.cache.executor7000100%0.327

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

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.416

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.001

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest3000100%0.068

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
BlockingCacheTest2000100%4.146
CacheConfigurationSetupTest2000100%5.22
CacheFilterTest1900194.737%0.152
CacheHeadersFilterTest2000100%0.061
CacheResponseWrapperTest4000100%0.01
DelegatingBlobCachedEntryTest1000100%0.003
GZipFilterTest500260%0.607
InMemoryCachedPageTest2000100%0
ResponseExpirationCalculatorTest15000100%0.001
StandaloneGZipFilterTest3000100%0.1

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0.032
SetExpirationHeadersTest2000100%0.036
StoreTest2000100%0.259

Test Cases

[Summary] [Package List] [Test Cases]

CacheToolsPageXssTest

testXSS0.416

CacheConfigurationTest

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

DefaultTest

testSemicolonIsEscapedInParameterValues0.06
testRetrieveDefaultCacheKey0.004
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined0.004

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.695
testBlocking0.161
testSerialAccess0.01
testAddMoreThanMaxSize0.009

AbstractExecutorTest

testModifiedAfterRequestHeader0.03
testModifiedSameAsRequestHeader0.001
testNotModifiedAfterRequestHeader0.001

SetExpirationHeadersTest

testProcessCacheRequest0.034
testProcessNoCacheRequest0.002

StoreTest

testProcessCacheRequest0.089
testClearCacheWhenExceptionOccurs0.17

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.123
testLockTimeoutException4.023

CacheConfigurationSetupTest

testExecutorSetup3.832
testVoting1.388

CacheFilterTest

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

CacheHeadersFilterTest

testFilterNoCacheRequest0.032
testFilterCacheRequest0.029

CacheResponseWrapperTest

testTempFileSizeIsSameAsOriginalSize0.004
testGetLastModified0.005
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse0
testSetHeader0.001

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.003

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.05
testBufferIsFlushedAndGZipNotSetOnError0.05
skipped
testResponseIsGzippedWhenThresholdExceeded0.238
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.238
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.031

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0
testGZipIfContentIsNotGZipped0

ResponseExpirationCalculatorTest

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

StandaloneGZipFilterTest

testDoesNotByPassIfClientAcceptsGZip0.046
testBypassesIfClientDoesNotAcceptGZip0.028
testBypassesAsDictatedByVoters0.026

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0
testGzipIsSymetric0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0
testGzipActuallyCompressesAtSomePoint0

Failure Details

[Summary] [Package List] [Test Cases]


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