Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
113 0 0 4 96.46% 14.253

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
info.magnolia.module.cache.entry 2 0 0 0 100% 0.013
info.magnolia.module.cache.commands 1 0 0 0 100% 0.021
info.magnolia.module.cache.cachekey 2 0 0 0 100% 0.054
info.magnolia.module.cache.cachepolicy.voters 2 0 0 0 100% 0.002
info.magnolia.module.cache.filter 60 0 0 4 93.333% 1.878
info.magnolia.module.cache.cachepolicy 11 0 0 0 100% 0.289
info.magnolia.module.cache 9 0 0 0 100% 0.978
info.magnolia.module.cache.util 4 0 0 0 100% 0
info.magnolia.module.cache.executor 5 0 0 0 100% 0
info.magnolia.module.cache.setup 16 0 0 0 100% 11.018

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

info.magnolia.module.cache.entry

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

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

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

info.magnolia.module.cache.cachepolicy.voters

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

info.magnolia.module.cache.filter

Class Tests Errors Failures Skipped Success Rate Time
CacheConfigurationSetupTest 2 0 0 0 100% 1.092
ContentCachedEntryTest 1 0 0 0 100% 0.005
DelegatingBlobCachedEntryTest 1 0 0 0 100% 0.009
InMemoryCachedPageTest 2 0 0 0 100% 0
StandaloneGZipFilterTest 3 0 0 3 0% 0
CacheFilterTest 23 0 0 1 95.652% 0.254
ResponseExpirationCalculatorTest 15 0 0 0 100% 0.015
CacheResponseWrapperTest 7 0 0 0 100% 0.014
CacheHeadersFilterTest 2 0 0 0 100% 0.104
GZipFilterTest 4 0 0 0 100% 0.385

info.magnolia.module.cache.cachepolicy

Class Tests Errors Failures Skipped Success Rate Time
DefaultTest 10 0 0 0 100% 0.283
XMagnoliaCacheAttributeTest 1 0 0 0 100% 0.006

info.magnolia.module.cache

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

info.magnolia.module.cache.util

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

info.magnolia.module.cache.executor

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

info.magnolia.module.cache.setup

Class Tests Errors Failures Skipped Success Rate Time
MigrateCacheFilterConfigurationTaskTest 3 0 0 0 100% 0.068
CacheModuleVersionHandlerTest 9 0 0 0 100% 10.919
RemoveCacheTempFilesTaskTest 4 0 0 0 100% 0.031

Test Cases

[Summary] [Package List] [Test Cases]

CacheConfigurationSetupTest

testExecutorSetup 0.642
testVoting 0.45

ContentCachedEntryTest

replay 0.005

MigrateCacheFilterConfigurationTaskTest

testMultiFilterSetup 0.064
testCustomFilterSetup 0.003
testOneFilterSetup 0.001

DefaultCacheKeyTest

equals 0
testSerializable 0.054

CacheMonitorTest

countFlush 0

SingleReplayCacheEntryWrapperTest

replayBeforeSerialization 0.008
replayAfterSerialization 0.005

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong 0
testGzipIsSymetric 0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong 0
testGzipActuallyCompressesAtSomePoint 0

CacheModuleVersionHandlerTest

updateFrom55 2.798
addsUIDLPolicyIfNeeded 1.673
doesNotAddedUIDLPolicyIfAlreadyPresent 1.253
cleanInstall 1.206
updateTo54WithVirtualURICustomized 0.81
testUpdateFrom53 0.785
reconfigurationsFor54 0.81
testUpdateFrom525 0.786
testUpdateTo54InstallNewCacheToolsApp 0.798

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles 0.009

AbstractExecutorTest

testModifiedAfterRequestHeader 0
testModifiedSameAsRequestHeader 0
testNotModifiedAfterRequestHeader 0

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped 0
testGZipIfContentIsNotGZipped 0

DefaultTest

testSemicolonIsEscapedInParameterValues1 0.146
testSemicolonIsEscapedInParameterValues 0.016
testCustomCacheKeyGenerator 0.026
testRefreshWithPragmaHeader 0.024
testUseCache 0.017
testRetrieveDefaultCacheKey 0.011
testBypass 0.012
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined 0.009
testRefreshWithCacheControlHeader 0.012
testDontSortParameterValuesInPlace 0.01

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

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull 0.281
testFlushPolicyFallbacksToFlushAllListeningPolicy 0.005
testBrowserCachePolicyFallbacksToNeverPolicy 0.009
testCachePolicyFallbacksToNeverPolicy 0.017

RemoveCacheTempFilesTaskTest

testDeleteTempFile 0
testFolderWithCacheTempFilePrefixIsNotDeleted 0.012
testTempFileWhichDoesNotStartWithCacheTempPrefixIsNotDeleted 0.009
testDeleteMultipleTempFiles 0.01

SetExpirationHeadersTest

testProcessCacheRequest 0
testProcessNoCacheRequest 0

TtlVotingTest

browserTtlWins 0.001
serverTtlWins 0.001

CacheFilterTest

testFilterUsesGivenConfigAndCacheName 0.019
testServesUnzippedContentAndRemovesGzipHeadersIfClientDoesNotAcceptGZipEncoding 0.044
lockTimeoutException 0.019
testDontJustSends304WithNoBodyIfRequestHeadersAskForItButResponseIsCommitted 0.011
testServesGZippedContentIfClientAcceptsGZipEncoding 0.014
testJustSends304WithNoBodyIfRequestHeadersAskForIt 0.01
testCachedErrorsAreServed 0.009
testPageShouldBeServedIfIfNoneMatchHeaderWasPassed 0.01
testErrorsAreCached 0.011
testRedirectsAreCached 0.011
testBlindlyObeysCachePolicyAndGetsStuffOutOfCacheWhenAskedToDoSo 0.008
test304IsNotCached 0.007
bypassErrorRequests 0.006
testStoresCompressedInCacheAndRenders 0.008
otherThanRuntimeException 0.006
testIfWeAreNotWriteContentToResponseTwiceWhenTimeToLiveInSecondsIsZero 0.009
testLastModifiedHeaderCanBeOverriddenByFurtherFiltersAndIsProperlyStoredAndReturned 0.008
bypassAlreadyWrappedResponse 0.009
testDoesNothingIfCachePolicyCommandsToBypass 0.01
testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE6 0
skipped
testCachedRedirectsAreServed 0.01
testJustSends304WithNoBodyIfRequestHeadersAskForItEvenOnCommitedResponse 0.008
testStoresInCacheAndRenders 0.007

ContentCachingConfigurationTest

cacheNameCanBeDifferentThanConfigSelfName 0
cacheNameDefaultsToSelfName 0

FlushAllListeningPolicyTest

concurrency 0.612
start 0.027
stop 0.027

ResponseExpirationCalculatorTest

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

XMagnoliaCacheAttributeTest

constructor 0.006

FlushFromCachesByUUIDCommandTest

testNPExceptionIsNotThrownIfNeverCachePolicyIsUsed 0.021

CacheResponseWrapperTest

testTresholdCanBeSpecifiedForTimeConsumingResources 0.002
testTempFileSizeIsSameAsOriginalSize 0.005
testGetLastModified 0.003
cacheNegotiationHeadersAreNotSwallowedWhenAddingHeader 0.002
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse 0.001
testSetHeader 0
cacheNegotiationHeadersAreNotSwallowedWhenSettingHeader 0.001

CacheHeadersFilterTest

testFilterNoCacheRequest 0.076
testFilterCacheRequest 0.028

GZipFilterTest

testBufferIsFlushedAndGZipNotSetOnError 0.055
testResponseIsGzippedWhenThresholdExceeded 0.224
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters 0.055
testCacheHeadersAreAddedToTheResponse 0.051

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