magnolia-module-cache Version: 4.5.11 Last Published: Aug 29, 2013

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
7300790.411%12.094

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.005
info.magnolia.module.cache.ehcache4000100%1.232
info.magnolia.cms.cache.pages1000100%0.437
info.magnolia.module.cache.util4000100%0.001
info.magnolia.module.cache.cachepolicy1000100%0.056
info.magnolia.module.cache.filter5300786.792%9.857
info.magnolia.module.cache.executor6000100%0.506

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

info.magnolia.module.cache.ehcache

ClassTestsErrors FailuresSkippedSuccess RateTime
EhCacheFactoryTest4000100%1.232

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.437

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.001

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest1000100%0.056

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
BlockingCacheTest2000100%4.046
CacheConfigurationSetupTest2000100%5.193
CacheFilterTest1900194.737%0.202
CacheHeadersFilterTest2000100%0.06
CacheResponseWrapperTest2000100%0.005
DelegatingBlobCachedEntryTest1000100%0.003
GZipFilterTest500260%0.346
InMemoryCachedPageTest200150%0.001
ResponseExpirationCalculatorTest15000100%0.001
StandaloneGZipFilterTest30030%0

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0.002
SetExpirationHeadersTest2000100%0.065
StoreTest1000100%0.439

Test Cases

[Summary] [Package List] [Test Cases]

CacheToolsPageXssTest

testXSS0.437

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull0.003
testFlushPolicyFallbacksToFlushAllListeningPolicy0.001
testBrowserCachePolicyFallbacksToNeverPolicy0.001
testCachePolicyFallbacksToNeverPolicy0

DefaultTest

testRetrieveDefaultCacheKey0.056

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.191
testBlocking0.02
testSerialAccess0.011
testAddMoreThanMaxSize0.01

AbstractExecutorTest

testModifiedAfterRequestHeader0.002
testModifiedSameAsRequestHeader0
testNotModifiedAfterRequestHeader0

SetExpirationHeadersTest

testProcessCacheRequest0.062
testProcessNoCacheRequest0.003

StoreTest

testClearCacheWhenExceptionOccurs0.439

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.025
testLockTimeoutException4.021

CacheConfigurationSetupTest

testExecutorSetup3.819
testVoting1.374

CacheFilterTest

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

CacheHeadersFilterTest

testFilterNoCacheRequest0.032
testFilterCacheRequest0.028

CacheResponseWrapperTest

testGetLastModified0.005
testSetHeader0

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.003

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.044
testBufferIsFlushedAndGZipNotSetOnError0.044
skipped
testResponseIsGzippedWhenThresholdExceeded0.114
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.114
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.03

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0.001
skipped
testGZipIfContentIsNotGZipped0

ResponseExpirationCalculatorTest

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

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0
testGzipIsSymetric0
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