Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
7700396.104%14.199

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.001
info.magnolia.cms.cache.pages1000100%0.014
info.magnolia.module.cache.ehcache4000100%1.054
info.magnolia.module.cache.util4000100%0.001
info.magnolia.module.cache.cachepolicy3000100%0.01
info.magnolia.module.cache.filter5500394.545%12.593
info.magnolia.module.cache.executor6000100%0.526

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

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.014

info.magnolia.module.cache.ehcache

ClassTestsErrors FailuresSkippedSuccess RateTime
EhCacheFactoryTest4000100%1.054

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.001

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest3000100%0.01

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
StandaloneGZipFilterTest3000100%0.939
InMemoryCachedPageTest2000100%0.012
CacheHeadersFilterTest2000100%0.114
CacheFilterTest1900194.737%0.296
GZipFilterTest500260%0.487
DelegatingBlobCachedEntryTest1000100%0.013
CacheConfigurationSetupTest2000100%5.781
CacheResponseWrapperTest4000100%0.631
ResponseExpirationCalculatorTest15000100%0.001
BlockingCacheTest2000100%4.319

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0
SetExpirationHeadersTest2000100%0
StoreTest1000100%0.526

Test Cases

[Summary] [Package List] [Test Cases]

StandaloneGZipFilterTest

testDoesNotByPassIfClientAcceptsGZip0.843
testBypassesIfClientDoesNotAcceptGZip0.05
testBypassesAsDictatedByVoters0.046

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0.012
testGZipIfContentIsNotGZipped0

CacheHeadersFilterTest

testFilterNoCacheRequest0.049
testFilterCacheRequest0.065

CacheFilterTest

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

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.051
testBufferIsFlushedAndGZipNotSetOnError0.051
skipped
testResponseIsGzippedWhenThresholdExceeded0.171
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.171
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.043

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.013

CacheConfigurationSetupTest

testExecutorSetup4.451
testVoting1.33

CacheResponseWrapperTest

testTempFileSizeIsSameAsOriginalSize0.624
testGetLastModified0.006
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse0.001
testSetHeader0

ResponseExpirationCalculatorTest

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

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.286
testLockTimeoutException4.033

AbstractExecutorTest

testModifiedAfterRequestHeader0
testModifiedSameAsRequestHeader0
testNotModifiedAfterRequestHeader0

SetExpirationHeadersTest

testProcessCacheRequest0
testProcessNoCacheRequest0

StoreTest

testClearCacheWhenExceptionOccurs0.526

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull0
testFlushPolicyFallbacksToFlushAllListeningPolicy0
testBrowserCachePolicyFallbacksToNeverPolicy0
testCachePolicyFallbacksToNeverPolicy0.001

DefaultTest

testSemicolonIsEscapedInParameterValues0.004
testRetrieveDefaultCacheKey0.003
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined0.003

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0
testGzipIsSymetric0.001
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0
testGzipActuallyCompressesAtSomePoint0

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.019
testBlocking0.034
testSerialAccess0
testAddMoreThanMaxSize0.001

CacheToolsPageXssTest

testXSS0.014

Failure Details

[Summary] [Package List] [Test Cases]


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