Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
122 0 0 4 96.721% 9.237

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% 0.42
info.magnolia.module.cache.commands 1 0 0 0 100% 0
info.magnolia.module.cache.entry 2 0 0 0 100% 0.015
info.magnolia.module.cache.cachekey 2 0 0 0 100% 0
info.magnolia.module.cache.factory 1 0 0 0 100% 0.001
info.magnolia.module.cache 9 0 0 0 100% 0.884
info.magnolia.module.cache.executor 5 0 0 0 100% 0.011
info.magnolia.module.cache.setup 18 0 0 0 100% 6.816
info.magnolia.module.cache.inject 1 0 0 0 100% 0.007
info.magnolia.module.cache.cachepolicy.voters 2 0 0 0 100% 0.007
info.magnolia.module.cache.filter 64 0 0 4 93.75% 0.859
info.magnolia.module.cache.cachepolicy 12 0 0 0 100% 0.216
info.magnolia.module.cache.util 4 0 0 0 100% 0.001

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% 0.42

info.magnolia.module.cache.commands

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

info.magnolia.module.cache.entry

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

info.magnolia.module.cache.cachekey

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

info.magnolia.module.cache.factory

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

info.magnolia.module.cache

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

info.magnolia.module.cache.executor

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

info.magnolia.module.cache.setup

Class Tests Errors Failures Skipped Success Rate Time
CacheModuleVersionHandlerTest 11 0 0 0 100% 6.763
RemoveCacheTempFilesTaskTest 4 0 0 0 100% 0.025
MigrateCacheFilterConfigurationTaskTest 3 0 0 0 100% 0.028

info.magnolia.module.cache.inject

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

info.magnolia.module.cache.cachepolicy.voters

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

info.magnolia.module.cache.filter

Class Tests Errors Failures Skipped Success Rate Time
CacheResponseWrapperTest 13 0 0 0 100% 0.055
ResponseExpirationCalculatorTest 15 0 0 0 100% 0.253
ContentCachedEntryTest 1 0 0 0 100% 0.001
CacheConfigurationSetupTest 2 0 0 0 100% 0.462
InMemoryCachedPageTest 2 0 0 0 100% 0
DelegatingBlobCachedEntryTest 1 0 0 0 100% 0.003
StandaloneGZipFilterTest 3 0 0 3 0% 0
GZipFilterTest 4 0 0 0 100% 0.001
CacheFilterTest 23 0 0 1 95.652% 0.084

info.magnolia.module.cache.cachepolicy

Class Tests Errors Failures Skipped Success Rate Time
XMagnoliaCacheAttributeTest 1 0 0 0 100% 0.008
DefaultTest 11 0 0 0 100% 0.208

info.magnolia.module.cache.util

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

Test Cases

[Summary] [Package List] [Test Cases]

CacheResponseWrapperTest

thresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse 0
getContentType 0.005
multipleContentTypeGetHeaderReturnsFirstSet 0.004
getLastModified 0.006
cacheNegotiationHeadersAreNotSwallowedWhenAddingHeader 0.006
setHeader 0.003
tempFileSizeIsSameAsOriginalSize 0.008
getContentTypeAddHeader 0.003
thresholdCanBeSpecifiedForTimeConsumingResources 0.004
cacheNegotiationHeadersAreNotSwallowedWhenSettingHeader 0.003
getContentTypeSetHeader 0.003
replayContentAboveThresholdRespectsServeFlag 0.001
getHeaders 0.004

ResponseExpirationCalculatorTest

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

DefaultCacheKeyTest

equals 0
testSerializable 0

CacheMonitorTest

countFlush 0.395

ContentCachedEntryTest

replay 0

CacheModuleVersionHandlerTest

updateFrom551 1.542
updateFrom554 0.446
updateFrom56 0.464
addsUIDLPolicyIfNeeded 0.752
doesNotAddedUIDLPolicyIfAlreadyPresent 0.523
cleanInstall 0.578
updateTo54WithVirtualURICustomized 0.476
testUpdateFrom53 0.505
reconfigurationsFor54 0.6
testUpdateFrom525 0.456
testUpdateTo54InstallNewCacheToolsApp 0.42

CacheFactoryProviderTest

getByFactoryClass 0.007

RemoveCacheTempFilesTaskTest

testDeleteTempFile 0.004
testFolderWithCacheTempFilePrefixIsNotDeleted 0.006
testTempFileWhichDoesNotStartWithCacheTempPrefixIsNotDeleted 0.004
testDeleteMultipleTempFiles 0.01

CacheConfigurationSetupTest

testExecutorSetup 0.27
testVoting 0.192

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull 0
testFlushPolicyFallbacksToFlushAllListeningPolicy 0
testBrowserCachePolicyFallbacksToNeverPolicy 0
testCachePolicyFallbacksToNeverPolicy 0.003

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped 0
testGZipIfContentIsNotGZipped 0

MigrateCacheFilterConfigurationTaskTest

testMultiFilterSetup 0.026
testCustomFilterSetup 0.001
testOneFilterSetup 0.001

DelegatingCacheFactoryTest

getNullCache 0

AbstractExecutorTest

testModifiedAfterRequestHeader 0.011
testModifiedSameAsRequestHeader 0
testNotModifiedAfterRequestHeader 0

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles 0.003

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
testProcessNoCacheRequest 0

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong 0
testGzipIsSymetric 0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong 0
testGzipActuallyCompressesAtSomePoint 0.001

FlushFromCachesByUUIDCommandTest

testNPExceptionIsNotThrownIfNeverCachePolicyIsUsed 0

ContentCachingConfigurationTest

cacheNameCanBeDifferentThanConfigSelfName 0
cacheNameDefaultsToSelfName 0

XMagnoliaCacheAttributeTest

constructor 0.008

SingleReplayCacheEntryWrapperTest

replayBeforeSerialization 0.008
replayAfterSerialization 0.007

TtlVotingTest

browserTtlWins 0.006
serverTtlWins 0.001

GZipFilterTest

testBufferIsFlushedAndGZipNotSetOnError 0
testResponseIsGzippedWhenThresholdExceeded 0
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters 0
testCacheHeadersAreAddedToTheResponse 0

CacheFilterTest

testFilterUsesGivenConfigAndCacheName 0.001
testServesUnzippedContentAndRemovesGzipHeadersIfClientDoesNotAcceptGZipEncoding 0
lockTimeoutException 0
testDontJustSends304WithNoBodyIfRequestHeadersAskForItButResponseIsCommitted 0
testServesGZippedContentIfClientAcceptsGZipEncoding 0
testJustSends304WithNoBodyIfRequestHeadersAskForIt 0
testCachedErrorsAreServed 0
testPageShouldBeServedIfIfNoneMatchHeaderWasPassed 0.005
testErrorsAreCached 0.006
testRedirectsAreCached 0.005
testBlindlyObeysCachePolicyAndGetsStuffOutOfCacheWhenAskedToDoSo 0.004
test304IsNotCached 0.005
bypassErrorRequests 0.005
testStoresCompressedInCacheAndRenders 0.006
otherThanRuntimeException 0.006
testIfWeAreNotWriteContentToResponseTwiceWhenTimeToLiveInSecondsIsZero 0.008
testLastModifiedHeaderCanBeOverriddenByFurtherFiltersAndIsProperlyStoredAndReturned 0.006
bypassAlreadyWrappedResponse 0.004
testDoesNothingIfCachePolicyCommandsToBypass 0.005
testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE6 0
skipped
testCachedRedirectsAreServed 0.006
testJustSends304WithNoBodyIfRequestHeadersAskForItEvenOnCommitedResponse 0.005
testStoresInCacheAndRenders 0.006

DefaultTest

testStore 0.141
testSemicolonIsEscapedInParameterValues1 0.009
testSemicolonIsEscapedInParameterValues 0.006
testCustomCacheKeyGenerator 0.006
testRefreshWithPragmaHeader 0.009
testUseCache 0.005
testRetrieveDefaultCacheKey 0.005
testBypass 0.008
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined 0.006
testRefreshWithCacheControlHeader 0.007
testDontSortParameterValuesInPlace 0.005

FlushAllListeningPolicyTest

start 0.503
stop 0.009
concurrency 0.02

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