Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
117 0 0 4 96.581% 32.211

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
info.magnolia.module.cache.mbean 1 0 0 0 100% 2.356
info.magnolia.module.cache.commands 1 0 0 0 100% 0.021
info.magnolia.module.cache.entry 2 0 0 0 100% 0.057
info.magnolia.module.cache.cachekey 2 0 0 0 100% 0.01
info.magnolia.module.cache.factory 1 0 0 0 100% 0
info.magnolia.module.cache 9 0 0 0 100% 1.441
info.magnolia.module.cache.executor 5 0 0 0 100% 0.112
info.magnolia.module.cache.setup 18 0 0 0 100% 24.247
info.magnolia.module.cache.inject 1 0 0 0 100% 0.019
info.magnolia.module.cache.cachepolicy.voters 2 0 0 0 100% 0.082
info.magnolia.module.cache.filter 59 0 0 4 93.22% 2.533
info.magnolia.module.cache.cachepolicy 12 0 0 0 100% 1.308
info.magnolia.module.cache.util 4 0 0 0 100% 0.025

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

info.magnolia.module.cache.mbean

Class Tests Errors Failures Skipped Success Rate Time
CacheMonitorTest 1 0 0 0 100% 2.356

info.magnolia.module.cache.commands

Class Tests Errors Failures Skipped Success Rate Time
FlushFromCachesByUUIDCommandTest 1 0 0 0 100% 0.021

info.magnolia.module.cache.entry

Class Tests Errors Failures Skipped Success Rate Time
SingleReplayCacheEntryWrapperTest 2 0 0 0 100% 0.057

info.magnolia.module.cache.cachekey

Class Tests Errors Failures Skipped Success Rate Time
DefaultCacheKeyTest 2 0 0 0 100% 0.01

info.magnolia.module.cache.factory

Class Tests Errors Failures Skipped Success Rate Time
DelegatingCacheFactoryTest 1 0 0 0 100% 0

info.magnolia.module.cache

Class Tests Errors Failures Skipped Success Rate Time
CacheConfigurationTest 4 0 0 0 100% 0.03
ContentCachingConfigurationTest 2 0 0 0 100% 0
FlushAllListeningPolicyTest 3 0 0 0 100% 1.411

info.magnolia.module.cache.executor

Class Tests Errors Failures Skipped Success Rate Time
AbstractExecutorTest 3 0 0 0 100% 0.065
SetExpirationHeadersTest 2 0 0 0 100% 0.047

info.magnolia.module.cache.setup

Class Tests Errors Failures Skipped Success Rate Time
CacheModuleVersionHandlerTest 11 0 0 0 100% 23.961
RemoveCacheTempFilesTaskTest 4 0 0 0 100% 0.116
MigrateCacheFilterConfigurationTaskTest 3 0 0 0 100% 0.17

info.magnolia.module.cache.inject

Class Tests Errors Failures Skipped Success Rate Time
CacheFactoryProviderTest 1 0 0 0 100% 0.019

info.magnolia.module.cache.cachepolicy.voters

Class Tests Errors Failures Skipped Success Rate Time
TtlVotingTest 2 0 0 0 100% 0.082

info.magnolia.module.cache.filter

Class Tests Errors Failures Skipped Success Rate Time
CacheResponseWrapperTest 8 0 0 0 100% 0.09
ResponseExpirationCalculatorTest 15 0 0 0 100% 0.01
ContentCachedEntryTest 1 0 0 0 100% 0.005
CacheConfigurationSetupTest 2 0 0 0 100% 1.63
InMemoryCachedPageTest 2 0 0 0 100% 0.001
DelegatingBlobCachedEntryTest 1 0 0 0 100% 0.014
StandaloneGZipFilterTest 3 0 0 3 0% 0
GZipFilterTest 4 0 0 0 100% 0.335
CacheFilterTest 23 0 0 1 95.652% 0.448

info.magnolia.module.cache.cachepolicy

Class Tests Errors Failures Skipped Success Rate Time
XMagnoliaCacheAttributeTest 1 0 0 0 100% 0.094
DefaultTest 11 0 0 0 100% 1.214

info.magnolia.module.cache.util

Class Tests Errors Failures Skipped Success Rate Time
GZipUtilTest 4 0 0 0 100% 0.025

Test Cases

[Summary] [Package List] [Test Cases]

CacheResponseWrapperTest

testTresholdCanBeSpecifiedForTimeConsumingResources 0.01
testTempFileSizeIsSameAsOriginalSize 0.019
testGetLastModified 0.016
cacheNegotiationHeadersAreNotSwallowedWhenAddingHeader 0.01
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse 0.007
testSetHeader 0.006
cacheNegotiationHeadersAreNotSwallowedWhenSettingHeader 0.01
replayContentAboveThresholdRespectsServeFlag 0.012

ResponseExpirationCalculatorTest

testDetectsSharedCacheMaxAge 0.005
testWontCacheWhenCacheControlNoCache 0
testDetectsExpiresAsInt 0.001
testChoosesMostRestrictiveCacheControlMaxAge 0
testWontCacheWhenPragmaNoCache 0
testDetectsCacheControlMaxAge 0
testDetectsExpiresAsLong 0
testDetectsExpiresAsString 0.002
testWontCacheWhenCacheControlPrivate 0
testChoosesMostRestrictiveSharedCache 0.001
testSharedCacheMaxAgeOverridesExpires 0
testChoosesMostRestrictiveExpires 0
testCacheControlMaxAgeOverridesExpires 0
testConsumesCacheHeaders 0.001
testSharedCacheMaxAgeOverridesCacheControlMaxAge 0

DefaultCacheKeyTest

equals 0
testSerializable 0.01

CacheMonitorTest

countFlush 2.356

ContentCachedEntryTest

replay 0.005

CacheModuleVersionHandlerTest

updateFrom551 8.043
updateFrom554 1.999
updateFrom56 1.863
addsUIDLPolicyIfNeeded 1.614
doesNotAddedUIDLPolicyIfAlreadyPresent 1.306
cleanInstall 2.319
updateTo54WithVirtualURICustomized 1.648
testUpdateFrom53 1.323
reconfigurationsFor54 1.506
testUpdateFrom525 1.194
testUpdateTo54InstallNewCacheToolsApp 1.146

CacheFactoryProviderTest

getByFactoryClass 0.019

RemoveCacheTempFilesTaskTest

testDeleteTempFile 0.02
testFolderWithCacheTempFilePrefixIsNotDeleted 0.049
testTempFileWhichDoesNotStartWithCacheTempPrefixIsNotDeleted 0.036
testDeleteMultipleTempFiles 0.011

CacheConfigurationSetupTest

testExecutorSetup 0.958
testVoting 0.672

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull 0.009
testFlushPolicyFallbacksToFlushAllListeningPolicy 0.006
testBrowserCachePolicyFallbacksToNeverPolicy 0.007
testCachePolicyFallbacksToNeverPolicy 0.008

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped 0
testGZipIfContentIsNotGZipped 0.001

MigrateCacheFilterConfigurationTaskTest

testMultiFilterSetup 0.167
testCustomFilterSetup 0.002
testOneFilterSetup 0.001

DelegatingCacheFactoryTest

getNullCache 0

AbstractExecutorTest

testModifiedAfterRequestHeader 0.065
testModifiedSameAsRequestHeader 0
testNotModifiedAfterRequestHeader 0

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles 0.014

StandaloneGZipFilterTest

testDoesNotByPassIfClientAcceptsGZip 0
To fix these tests, we need to remove the static dependency to GZipUtil and make it injected/injectable
testBypassesIfClientDoesNotAcceptGZip 0
To fix these tests, we need to remove the static dependency to GZipUtil and make it injected/injectable
testBypassesAsDictatedByVoters 0
To fix these tests, we need to remove the static dependency to GZipUtil and make it injected/injectable

SetExpirationHeadersTest

testProcessCacheRequest 0.044
testProcessNoCacheRequest 0.003

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong 0.017
testGzipIsSymetric 0.007
testGzippedEmptyByteArrayShouldBeExactly20BytesLong 0.001
testGzipActuallyCompressesAtSomePoint 0

FlushFromCachesByUUIDCommandTest

testNPExceptionIsNotThrownIfNeverCachePolicyIsUsed 0.021

ContentCachingConfigurationTest

cacheNameCanBeDifferentThanConfigSelfName 0
cacheNameDefaultsToSelfName 0

XMagnoliaCacheAttributeTest

constructor 0.094

SingleReplayCacheEntryWrapperTest

replayBeforeSerialization 0.016
replayAfterSerialization 0.041

TtlVotingTest

browserTtlWins 0.082
serverTtlWins 0

GZipFilterTest

testBufferIsFlushedAndGZipNotSetOnError 0.068
testResponseIsGzippedWhenThresholdExceeded 0.166
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters 0.062
testCacheHeadersAreAddedToTheResponse 0.039

CacheFilterTest

testFilterUsesGivenConfigAndCacheName 0.075
testServesUnzippedContentAndRemovesGzipHeadersIfClientDoesNotAcceptGZipEncoding 0.04
lockTimeoutException 0.027
testDontJustSends304WithNoBodyIfRequestHeadersAskForItButResponseIsCommitted 0.012
testServesGZippedContentIfClientAcceptsGZipEncoding 0.013
testJustSends304WithNoBodyIfRequestHeadersAskForIt 0.012
testCachedErrorsAreServed 0.025
testPageShouldBeServedIfIfNoneMatchHeaderWasPassed 0.011
testErrorsAreCached 0.01
testRedirectsAreCached 0.017
testBlindlyObeysCachePolicyAndGetsStuffOutOfCacheWhenAskedToDoSo 0.027
test304IsNotCached 0.011
bypassErrorRequests 0.01
testStoresCompressedInCacheAndRenders 0.013
otherThanRuntimeException 0.015
testIfWeAreNotWriteContentToResponseTwiceWhenTimeToLiveInSecondsIsZero 0.029
testLastModifiedHeaderCanBeOverriddenByFurtherFiltersAndIsProperlyStoredAndReturned 0.027
bypassAlreadyWrappedResponse 0.013
testDoesNothingIfCachePolicyCommandsToBypass 0.014
testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE6 0
skipped
testCachedRedirectsAreServed 0.016
testJustSends304WithNoBodyIfRequestHeadersAskForItEvenOnCommitedResponse 0.017
testStoresInCacheAndRenders 0.014

DefaultTest

testStore 0.803
testSemicolonIsEscapedInParameterValues1 0.061
testSemicolonIsEscapedInParameterValues 0.066
testCustomCacheKeyGenerator 0.028
testRefreshWithPragmaHeader 0.045
testUseCache 0.02
testRetrieveDefaultCacheKey 0.025
testBypass 0.061
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined 0.016
testRefreshWithCacheControlHeader 0.072
testDontSortParameterValuesInPlace 0.017

FlushAllListeningPolicyTest

start 1.36
stop 0.021
concurrency 0.03

Failure Details

[Summary] [Package List] [Test Cases]


testDoesNotByPassIfClientAcceptsGZip
skipped: To fix these tests, we need to remove the static dependency to GZipUtil and make it injected/injectable
testBypassesIfClientDoesNotAcceptGZip
skipped: To fix these tests, we need to remove the static dependency to GZipUtil and make it injected/injectable
testBypassesAsDictatedByVoters
skipped: To fix these tests, we need to remove the static dependency to GZipUtil and make it injected/injectable
testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE6
skipped: skipped