Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
7700790.909%14.041

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.002
info.magnolia.cms.cache.pages1000100%0.013
info.magnolia.module.cache.ehcache4000100%1.053
info.magnolia.module.cache.util4000100%0.002
info.magnolia.module.cache.cachepolicy3000100%0.01
info.magnolia.module.cache.filter5500787.273%12.417
info.magnolia.module.cache.executor6000100%0.544

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

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.013

info.magnolia.module.cache.ehcache

ClassTestsErrors FailuresSkippedSuccess RateTime
EhCacheFactoryTest4000100%1.053

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.002

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest3000100%0.01

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
StandaloneGZipFilterTest30030%0.123
InMemoryCachedPageTest200150%0.014
CacheHeadersFilterTest2000100%0.677
GZipFilterTest500260%0.886
CacheFilterTest1900194.737%0.255
DelegatingBlobCachedEntryTest1000100%0.012
CacheConfigurationSetupTest2000100%5.622
CacheResponseWrapperTest4000100%0.512
ResponseExpirationCalculatorTest15000100%0.004
BlockingCacheTest2000100%4.312

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0.002
SetExpirationHeadersTest2000100%0.005
StoreTest1000100%0.537

Test Cases

[Summary] [Package List] [Test Cases]

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0.001
skipped
testGZipIfContentIsNotGZipped0.013

CacheHeadersFilterTest

testFilterNoCacheRequest0.631
testFilterCacheRequest0.046

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.237
testBufferIsFlushedAndGZipNotSetOnError0.237
skipped
testResponseIsGzippedWhenThresholdExceeded0.186
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.186
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.04

CacheFilterTest

testFilterUsesGivenConfigAndCacheName0.082
testServesUnzippedContentAndRemovesGzipHeadersIfClientDoesNotAcceptGZipEncoding0.021
testDontJustSends304WithNoBodyIfRequestHeadersAskForItButResponseIsCommitted0.011
testServesGZippedContentIfClientAcceptsGZipEncoding0.012
testJustSends304WithNoBodyIfRequestHeadersAskForIt0.006
testCachedErrorsAreServed0.006
testPageShouldBeServedIfIfNoneMatchHeaderWasPassed0.012
testErrorsAreCached0.012
testRedirectsAreCached0.009
testBlindlyObeysCachePolicyAndGetsStuffOutOfCacheWhenAskedToDoSo0.012
test304IsNotCached0.006
testStoresCompressedInCacheAndRenders0.008
testIfWeAreNotWriteContentToResponseTwiceWhenTimeToLiveInSecondsIsZero0.014
testLastModifiedHeaderCanBeOverriddenByFurtherFiltersAndIsProperlyStoredAndReturned0.01
testDoesNothingIfCachePolicyCommandsToBypass0.005
testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE60.005
skipped
testCachedRedirectsAreServed0.006
testJustSends304WithNoBodyIfRequestHeadersAskForItEvenOnCommitedResponse0.01
testStoresInCacheAndRenders0.008

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.012

CacheConfigurationSetupTest

testExecutorSetup4.272
testVoting1.35

CacheResponseWrapperTest

testTempFileSizeIsSameAsOriginalSize0.506
testGetLastModified0.005
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse0
testSetHeader0.001

ResponseExpirationCalculatorTest

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

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.276
testLockTimeoutException4.036

AbstractExecutorTest

testModifiedAfterRequestHeader0
testModifiedSameAsRequestHeader0
testNotModifiedAfterRequestHeader0

SetExpirationHeadersTest

testProcessCacheRequest0.003
testProcessNoCacheRequest0.002

StoreTest

testClearCacheWhenExceptionOccurs0.537

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull0
testFlushPolicyFallbacksToFlushAllListeningPolicy0.001
testBrowserCachePolicyFallbacksToNeverPolicy0
testCachePolicyFallbacksToNeverPolicy0.001

DefaultTest

testSemicolonIsEscapedInParameterValues0.004
testRetrieveDefaultCacheKey0.003
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined0.003

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0.001
testGzipIsSymetric0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0.001
testGzipActuallyCompressesAtSomePoint0

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.017
testBlocking0.02
testSerialAccess0.008
testAddMoreThanMaxSize0.008

CacheToolsPageXssTest

testXSS0.013

Failure Details

[Summary] [Package List] [Test Cases]


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