Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
7800396.154%12.095

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.204
info.magnolia.cms.cache.pages1000100%0.404
info.magnolia.module.cache.util4000100%0
info.magnolia.module.cache.cachepolicy3000100%0.067
info.magnolia.module.cache.filter5500394.545%10.099
info.magnolia.module.cache.executor7000100%0.316

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

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.404

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest3000100%0.067

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
BlockingCacheTest2000100%4.14
CacheConfigurationSetupTest2000100%5.226
CacheFilterTest1900194.737%0.172
CacheHeadersFilterTest2000100%0.06
CacheResponseWrapperTest4000100%0.01
DelegatingBlobCachedEntryTest1000100%0.003
GZipFilterTest500260%0.393
InMemoryCachedPageTest2000100%0
ResponseExpirationCalculatorTest15000100%0.002
StandaloneGZipFilterTest3000100%0.093

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0.03
SetExpirationHeadersTest2000100%0.037
StoreTest2000100%0.249

Test Cases

[Summary] [Package List] [Test Cases]

CacheToolsPageXssTest

testXSS0.404

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull0.003
testFlushPolicyFallbacksToFlushAllListeningPolicy0.001
testBrowserCachePolicyFallbacksToNeverPolicy0.001
testCachePolicyFallbacksToNeverPolicy0

DefaultTest

testSemicolonIsEscapedInParameterValues0.059
testRetrieveDefaultCacheKey0.004
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined0.004

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.169
testBlocking0.017
testSerialAccess0.01
testAddMoreThanMaxSize0.008

AbstractExecutorTest

testModifiedAfterRequestHeader0.029
testModifiedSameAsRequestHeader0
testNotModifiedAfterRequestHeader0.001

SetExpirationHeadersTest

testProcessCacheRequest0.034
testProcessNoCacheRequest0.003

StoreTest

testProcessCacheRequest0.087
testClearCacheWhenExceptionOccurs0.162

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.12
testLockTimeoutException4.02

CacheConfigurationSetupTest

testExecutorSetup3.907
testVoting1.319

CacheFilterTest

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

CacheHeadersFilterTest

testFilterNoCacheRequest0.032
testFilterCacheRequest0.028

CacheResponseWrapperTest

testTempFileSizeIsSameAsOriginalSize0.004
testGetLastModified0.005
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse0.001
testSetHeader0

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.003

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.059
testBufferIsFlushedAndGZipNotSetOnError0.059
skipped
testResponseIsGzippedWhenThresholdExceeded0.122
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.122
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.031

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0
testGZipIfContentIsNotGZipped0

ResponseExpirationCalculatorTest

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

StandaloneGZipFilterTest

testDoesNotByPassIfClientAcceptsGZip0.044
testBypassesIfClientDoesNotAcceptGZip0.025
testBypassesAsDictatedByVoters0.024

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0
testGzipIsSymetric0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0
testGzipActuallyCompressesAtSomePoint0

Failure Details

[Summary] [Package List] [Test Cases]


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