magnolia-module-cache Version: 4.5.12-SNAPSHOT Last Published: Oct 1, 2013

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
7500790.667%14.024

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.cms.cache.pages1000100%0.015
info.magnolia.module.cache.ehcache4000100%1.072
info.magnolia.module.cache.util4000100%0.001
info.magnolia.module.cache.cachepolicy3000100%0.01
info.magnolia.module.cache.filter5300786.792%12.886
info.magnolia.module.cache.executor6000100%0.037

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.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%0.015

info.magnolia.module.cache.ehcache

ClassTestsErrors FailuresSkippedSuccess RateTime
EhCacheFactoryTest4000100%1.072

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.001

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest3000100%0.01

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
StandaloneGZipFilterTest30030%0.143
InMemoryCachedPageTest200150%0.016
CacheHeadersFilterTest2000100%0.758
GZipFilterTest500260%0.989
CacheFilterTest1900194.737%0.287
DelegatingBlobCachedEntryTest1000100%0.015
CacheConfigurationSetupTest2000100%6.267
CacheResponseWrapperTest2000100%0.006
ResponseExpirationCalculatorTest15000100%0.004
BlockingCacheTest2000100%4.401

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0
SetExpirationHeadersTest2000100%0
StoreTest1000100%0.037

Test Cases

[Summary] [Package List] [Test Cases]

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0.002
skipped
testGZipIfContentIsNotGZipped0.014

CacheHeadersFilterTest

testFilterNoCacheRequest0.707
testFilterCacheRequest0.051

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.266
testBufferIsFlushedAndGZipNotSetOnError0.267
skipped
testResponseIsGzippedWhenThresholdExceeded0.205
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.206
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.045

CacheFilterTest

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

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.015

CacheConfigurationSetupTest

testExecutorSetup4.661
testVoting1.606

CacheResponseWrapperTest

testGetLastModified0.005
testSetHeader0.001

ResponseExpirationCalculatorTest

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

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.351
testLockTimeoutException4.05

AbstractExecutorTest

testModifiedAfterRequestHeader0
testModifiedSameAsRequestHeader0
testNotModifiedAfterRequestHeader0

SetExpirationHeadersTest

testProcessCacheRequest0
testProcessNoCacheRequest0

StoreTest

testClearCacheWhenExceptionOccurs0.037

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull0
testFlushPolicyFallbacksToFlushAllListeningPolicy0
testBrowserCachePolicyFallbacksToNeverPolicy0
testCachePolicyFallbacksToNeverPolicy0

DefaultTest

testSemicolonIsEscapedInParameterValues0.004
testRetrieveDefaultCacheKey0.003
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined0.003

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0.001
testGzipIsSymetric0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0
testGzipActuallyCompressesAtSomePoint0

EhCacheFactoryTest

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

CacheToolsPageXssTest

testXSS0.015

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