Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
8600396.512%27.926

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.021
info.magnolia.module.cache.ehcache4000100%1.602
info.magnolia.cms.cache.pages1000100%1.28
info.magnolia.module.cache.util4000100%0.001
info.magnolia.module.cache.cachepolicy7000100%0.264
info.magnolia.module.cache.filter5500394.545%23.95
info.magnolia.module.cache.setup4000100%0.011
info.magnolia.module.cache.executor7000100%0.797

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

info.magnolia.module.cache.ehcache

ClassTestsErrors FailuresSkippedSuccess RateTime
EhCacheFactoryTest4000100%1.602

info.magnolia.cms.cache.pages

ClassTestsErrors FailuresSkippedSuccess RateTime
CacheToolsPageXssTest1000100%1.28

info.magnolia.module.cache.util

ClassTestsErrors FailuresSkippedSuccess RateTime
GZipUtilTest4000100%0.001

info.magnolia.module.cache.cachepolicy

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultTest7000100%0.264

info.magnolia.module.cache.filter

ClassTestsErrors FailuresSkippedSuccess RateTime
BlockingCacheTest2000100%4.371
CacheConfigurationSetupTest2000100%17.346
CacheFilterTest1900194.737%0.517
CacheHeadersFilterTest2000100%0.188
CacheResponseWrapperTest4000100%0.028
DelegatingBlobCachedEntryTest1000100%0.023
GZipFilterTest500260%1.171
InMemoryCachedPageTest2000100%0.001
ResponseExpirationCalculatorTest15000100%0.005
StandaloneGZipFilterTest3000100%0.3

info.magnolia.module.cache.setup

ClassTestsErrors FailuresSkippedSuccess RateTime
RemoveCacheTempFilesTaskTest4000100%0.011

info.magnolia.module.cache.executor

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractExecutorTest3000100%0.079
SetExpirationHeadersTest2000100%0.074
StoreTest2000100%0.644

Test Cases

[Summary] [Package List] [Test Cases]

CacheToolsPageXssTest

testXSS1.28

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull0.009
testFlushPolicyFallbacksToFlushAllListeningPolicy0.005
testBrowserCachePolicyFallbacksToNeverPolicy0.004
testCachePolicyFallbacksToNeverPolicy0.003

DefaultTest

testSemicolonIsEscapedInParameterValues10.16
testSemicolonIsEscapedInParameterValues0.009
testRefreshWithPragmaHeader0.048
testRetrieveDefaultCacheKey0.009
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined0.01
testRefreshWithCacheControlHeader0.017
testDontSortParameterValuesInPlace0.011

EhCacheFactoryTest

testBlockingAfterAddingMoreThanMaxSize1.473
testBlocking0.05
testSerialAccess0.032
testAddMoreThanMaxSize0.047

AbstractExecutorTest

testModifiedAfterRequestHeader0.077
testModifiedSameAsRequestHeader0.001
testNotModifiedAfterRequestHeader0.001

SetExpirationHeadersTest

testProcessCacheRequest0.07
testProcessNoCacheRequest0.004

StoreTest

testProcessCacheRequest0.207
testClearCacheWhenExceptionOccurs0.437

BlockingCacheTest

testThatAFailingRequestReleasesTheLock0.327
testLockTimeoutException4.044

CacheConfigurationSetupTest

testExecutorSetup11.529
testVoting5.817

CacheFilterTest

testFilterUsesGivenConfigAndCacheName0.056
testServesUnzippedContentAndRemovesGzipHeadersIfClientDoesNotAcceptGZipEncoding0.047
testDontJustSends304WithNoBodyIfRequestHeadersAskForItButResponseIsCommitted0.061
testServesGZippedContentIfClientAcceptsGZipEncoding0.031
testJustSends304WithNoBodyIfRequestHeadersAskForIt0.014
testCachedErrorsAreServed0.016
testPageShouldBeServedIfIfNoneMatchHeaderWasPassed0.031
testErrorsAreCached0.045
testRedirectsAreCached0.021
testBlindlyObeysCachePolicyAndGetsStuffOutOfCacheWhenAskedToDoSo0.033
test304IsNotCached0.011
testStoresCompressedInCacheAndRenders0.018
testIfWeAreNotWriteContentToResponseTwiceWhenTimeToLiveInSecondsIsZero0.037
testLastModifiedHeaderCanBeOverriddenByFurtherFiltersAndIsProperlyStoredAndReturned0.025
testDoesNothingIfCachePolicyCommandsToBypass0.01
testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE60.012
skipped
testCachedRedirectsAreServed0.01
testJustSends304WithNoBodyIfRequestHeadersAskForItEvenOnCommitedResponse0.022
testStoresInCacheAndRenders0.017

CacheHeadersFilterTest

testFilterNoCacheRequest0.097
testFilterCacheRequest0.091

CacheResponseWrapperTest

testTempFileSizeIsSameAsOriginalSize0.015
testGetLastModified0.011
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse0.001
testSetHeader0.001

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles0.023

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled0.151
testBufferIsFlushedAndGZipNotSetOnError0.151
skipped
testResponseIsGzippedWhenThresholdExceeded0.367
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters0.376
skipped
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled0.126

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped0
testGZipIfContentIsNotGZipped0.001

ResponseExpirationCalculatorTest

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

StandaloneGZipFilterTest

testDoesNotByPassIfClientAcceptsGZip0.148
testBypassesIfClientDoesNotAcceptGZip0.081
testBypassesAsDictatedByVoters0.071

RemoveCacheTempFilesTaskTest

testDeleteTempFile0.006
testFolderWithCacheTempFilePrefixIsNotDeleted0.001
testTempFileWhichDoesNotStartWithCacheTempPrefixIsNotDeleted0.001
testDeleteMultipleTempFiles0.003

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong0
testGzipIsSymetric0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong0.001
testGzipActuallyCompressesAtSomePoint0

Failure Details

[Summary] [Package List] [Test Cases]


testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE6
skipped: skipped
testBufferIsFlushedAndGZipNotSetOnError
skipped: skipped
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters
skipped: skipped