magnolia-module-cache Version: 4.5.11-MAGNOLIA-5423 Last Published: Nov 2, 2013

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
7300790.411%11.817

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.003
info.magnolia.module.cache.ehcache4000100%1.215
info.magnolia.cms.cache.pages1000100%0.413
info.magnolia.module.cache.util4000100%0.001
info.magnolia.module.cache.cachepolicy1000100%0.052
info.magnolia.module.cache.filter5300786.792%9.652
info.magnolia.module.cache.executor6000100%0.481

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

info.magnolia.module.cache.ehcache

ClassTestsErrors FailuresSkippedSuccess RateTime
EhCacheFactoryTest4000100%1.215

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.413

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.001

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest1000100%0.052

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
BlockingCacheTest2000100%4.042
CacheConfigurationSetupTest2000100%5.049
CacheFilterTest1900194.737%0.147
CacheHeadersFilterTest2000100%0.059
CacheResponseWrapperTest2000100%0.005
DelegatingBlobCachedEntryTest1000100%0.003
GZipFilterTest500260%0.344
InMemoryCachedPageTest200150%0
ResponseExpirationCalculatorTest15000100%0.003
StandaloneGZipFilterTest30030%0

info.magnolia.module.cache.executor

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

Test Cases

[Summary] [Package List] [Test Cases]

CacheToolsPageXssTest

testXSS0.413

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull0.002
testFlushPolicyFallbacksToFlushAllListeningPolicy0.001
testBrowserCachePolicyFallbacksToNeverPolicy0
testCachePolicyFallbacksToNeverPolicy0

DefaultTest

testRetrieveDefaultCacheKey0.052

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.177
testBlocking0.019
testSerialAccess0.01
testAddMoreThanMaxSize0.009

AbstractExecutorTest

testModifiedAfterRequestHeader0.002
testModifiedSameAsRequestHeader0.001
testNotModifiedAfterRequestHeader0

SetExpirationHeadersTest

testProcessCacheRequest0.059
testProcessNoCacheRequest0.002

StoreTest

testClearCacheWhenExceptionOccurs0.417

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.022
testLockTimeoutException4.02

CacheConfigurationSetupTest

testExecutorSetup3.709
testVoting1.34

CacheFilterTest

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

CacheHeadersFilterTest

testFilterNoCacheRequest0.032
testFilterCacheRequest0.027

CacheResponseWrapperTest

testGetLastModified0.005
testSetHeader0

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.003

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.04
testBufferIsFlushedAndGZipNotSetOnError0.04
skipped
testResponseIsGzippedWhenThresholdExceeded0.112
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.113
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.039

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0
skipped
testGZipIfContentIsNotGZipped0

ResponseExpirationCalculatorTest

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

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0
testGzipIsSymetric0.001
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0
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