magnolia-module-cache Version: 4.5.9 Last Published: May 30, 2013

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
7200790.278%12.821

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
info.magnolia.module.cache.ehcache4000100%1.211
info.magnolia.cms.cache.pages1000100%0.406
info.magnolia.module.cache.util4000100%0.001
info.magnolia.module.cache.cachepolicy1000100%0.03
info.magnolia.module.cache.filter5200786.538%9.6
info.magnolia.module.cache.executor6000100%1.573

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

info.magnolia.module.cache.ehcache

ClassTestsErrors FailuresSkippedSuccess RateTime
EhCacheFactoryTest4000100%1.211

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.406

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.001

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest1000100%0.03

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
BlockingCacheTest2000100%4.04
CacheConfigurationSetupTest2000100%5.174
CacheFilterTest1900194.737%0.158
CacheHeadersFilterTest2000100%0.057
CacheResponseWrapperTest2000100%0.014
DelegatingBlobCachedEntryTest1000100%0.005
GZipFilterTest400250%0.151
InMemoryCachedPageTest200150%0
ResponseExpirationCalculatorTest15000100%0.001
StandaloneGZipFilterTest30030%0

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0.003
SetExpirationHeadersTest2000100%0.061
StoreTest1000100%1.509

Test Cases

[Summary] [Package List] [Test Cases]

CacheToolsPageXssTest

testXSS0.406

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull0
testFlushPolicyFallbacksToFlushAllListeningPolicy0
testBrowserCachePolicyFallbacksToNeverPolicy0
testCachePolicyFallbacksToNeverPolicy0

DefaultTest

testRetrieveDefaultCacheKey0.03

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.176
testBlocking0.018
testSerialAccess0.009
testAddMoreThanMaxSize0.008

AbstractExecutorTest

testModifiedAfterRequestHeader0.001
testModifiedSameAsRequestHeader0.001
testNotModifiedAfterRequestHeader0.001

SetExpirationHeadersTest

testProcessCacheRequest0.059
testProcessNoCacheRequest0.002

StoreTest

testClearCacheWhenExceptionOccurs1.509

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.022
testLockTimeoutException4.018

CacheConfigurationSetupTest

testExecutorSetup3.836
testVoting1.338

CacheFilterTest

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

CacheHeadersFilterTest

testFilterNoCacheRequest0.03
testFilterCacheRequest0.027

CacheResponseWrapperTest

testGetLastModified0.013
testSetHeader0.001

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.005

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.04
testBufferIsFlushedAndGZipNotSetOnError0.04
skipped
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.04
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.031

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0
skipped
testGZipIfContentIsNotGZipped0

ResponseExpirationCalculatorTest

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

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0
testGzipIsSymetric0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0.001
testGzipActuallyCompressesAtSomePoint0

Failure Details

[Summary] [Package List] [Test Cases]


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