Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
7500790.667%10.931

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.006
info.magnolia.cms.cache.pages1000100%0.347
info.magnolia.module.cache.ehcache4000100%1.028
info.magnolia.module.cache.cachepolicy3000100%0.061
info.magnolia.module.cache.util4000100%0.001
info.magnolia.module.cache.filter5300786.792%9.45
info.magnolia.module.cache.executor6000100%0.038

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

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.347

info.magnolia.module.cache.ehcache

ClassTestsErrors FailuresSkippedSuccess RateTime
EhCacheFactoryTest4000100%1.028

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest3000100%0.061

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.001

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheFilterTest1900194.737%0.279
DelegatingBlobCachedEntryTest1000100%0.003
CacheHeadersFilterTest2000100%0.054
GZipFilterTest500260%0.338
StandaloneGZipFilterTest30030%0.003
ResponseExpirationCalculatorTest15000100%0.002
CacheConfigurationSetupTest2000100%4.444
InMemoryCachedPageTest200150%0.001
CacheResponseWrapperTest2000100%0.004
BlockingCacheTest2000100%4.322

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
SetExpirationHeadersTest2000100%0.004
AbstractExecutorTest3000100%0.003
StoreTest1000100%0.031

Test Cases

[Summary] [Package List] [Test Cases]

CacheConfigurationTest

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

CacheFilterTest

testFilterUsesGivenConfigAndCacheName0.085
testServesUnzippedContentAndRemovesGzipHeadersIfClientDoesNotAcceptGZipEncoding0.028
testDontJustSends304WithNoBodyIfRequestHeadersAskForItButResponseIsCommitted0.011
testServesGZippedContentIfClientAcceptsGZipEncoding0.01
testJustSends304WithNoBodyIfRequestHeadersAskForIt0.006
testCachedErrorsAreServed0.007
testPageShouldBeServedIfIfNoneMatchHeaderWasPassed0.015
testErrorsAreCached0.02
testRedirectsAreCached0.01
testBlindlyObeysCachePolicyAndGetsStuffOutOfCacheWhenAskedToDoSo0.013
test304IsNotCached0.004
testStoresCompressedInCacheAndRenders0.007
testIfWeAreNotWriteContentToResponseTwiceWhenTimeToLiveInSecondsIsZero0.016
testLastModifiedHeaderCanBeOverriddenByFurtherFiltersAndIsProperlyStoredAndReturned0.012
testDoesNothingIfCachePolicyCommandsToBypass0.004
testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE60.005
skipped
testCachedRedirectsAreServed0.004
testJustSends304WithNoBodyIfRequestHeadersAskForItEvenOnCommitedResponse0.012
testStoresInCacheAndRenders0.01

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.008
testBlocking0.01
testSerialAccess0.005
testAddMoreThanMaxSize0.005

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.003

CacheHeadersFilterTest

testFilterNoCacheRequest0.028
testFilterCacheRequest0.026

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.037
testBufferIsFlushedAndGZipNotSetOnError0.037
skipped
testResponseIsGzippedWhenThresholdExceeded0.119
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.119
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.026

CacheToolsPageXssTest

testXSS0.347

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0
testGzipIsSymetric0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0.001
testGzipActuallyCompressesAtSomePoint0

ResponseExpirationCalculatorTest

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

SetExpirationHeadersTest

testProcessCacheRequest0.003
testProcessNoCacheRequest0.001

DefaultTest

testSemicolonIsEscapedInParameterValues0.053
testRetrieveDefaultCacheKey0.004
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined0.004

CacheConfigurationSetupTest

testExecutorSetup3.259
testVoting1.185

AbstractExecutorTest

testModifiedAfterRequestHeader0
testModifiedSameAsRequestHeader0
testNotModifiedAfterRequestHeader0

StoreTest

testClearCacheWhenExceptionOccurs0.031

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0
skipped
testGZipIfContentIsNotGZipped0

CacheResponseWrapperTest

testGetLastModified0.004
testSetHeader0

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.233
testLockTimeoutException4.089

Failure Details

[Summary] [Package List] [Test Cases]


testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE6
skipped: skipped
testBufferIsFlushedAndGZipNotSetOnError
skipped: skipped
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters
skipped: skipped
testDoesNotByPassIfClientAcceptsGZip
skipped: skipped
testBypassesIfClientDoesNotAcceptGZip
skipped: skipped
testBypassesAsDictatedByVoters
skipped: skipped
testUnGZipIfContentIsGZipped
skipped: skipped