Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
118 0 0 4 96.61% 17.746

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.287
info.magnolia.module.cache.commands 1 0 0 0 100% 0.028
info.magnolia.module.cache.entry 2 0 0 0 100% 0.063
info.magnolia.module.cache.cachekey 2 0 0 0 100% 0.005
info.magnolia.module.cache.factory 1 0 0 0 100% 0
info.magnolia.module.cache 9 0 0 0 100% 1.041
info.magnolia.module.cache.executor 5 0 0 0 100% 0.048
info.magnolia.module.cache.setup 18 0 0 0 100% 13.872
info.magnolia.module.cache.inject 1 0 0 0 100% 0.015
info.magnolia.module.cache.cachepolicy.voters 2 0 0 0 100% 0
info.magnolia.module.cache.filter 61 0 0 4 93.443% 1.914
info.magnolia.module.cache.cachepolicy 11 0 0 0 100% 0.469
info.magnolia.module.cache.util 4 0 0 0 100% 0.004

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

info.magnolia.module.cache.commands

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

info.magnolia.module.cache.entry

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

info.magnolia.module.cache.cachekey

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

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.034
ContentCachingConfigurationTest 2 0 0 0 100% 0
FlushAllListeningPolicyTest 3 0 0 0 100% 1.007

info.magnolia.module.cache.executor

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

info.magnolia.module.cache.setup

Class Tests Errors Failures Skipped Success Rate Time
CacheModuleVersionHandlerTest 11 0 0 0 100% 13.746
RemoveCacheTempFilesTaskTest 4 0 0 0 100% 0.062
MigrateCacheFilterConfigurationTaskTest 3 0 0 0 100% 0.064

info.magnolia.module.cache.inject

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

info.magnolia.module.cache.cachepolicy.voters

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

info.magnolia.module.cache.filter

Class Tests Errors Failures Skipped Success Rate Time
CacheResponseWrapperTest 8 0 0 0 100% 0.035
ResponseExpirationCalculatorTest 15 0 0 0 100% 0.008
ContentCachedEntryTest 1 0 0 0 100% 0.003
CacheConfigurationSetupTest 2 0 0 0 100% 1.15
InMemoryCachedPageTest 2 0 0 0 100% 0.001
DelegatingBlobCachedEntryTest 1 0 0 0 100% 0.013
StandaloneGZipFilterTest 3 0 0 3 0% 0
CacheHeadersFilterTest 2 0 0 0 100% 0.083
GZipFilterTest 4 0 0 0 100% 0.262
CacheFilterTest 23 0 0 1 95.652% 0.359

info.magnolia.module.cache.cachepolicy

Class Tests Errors Failures Skipped Success Rate Time
XMagnoliaCacheAttributeTest 1 0 0 0 100% 0.013
DefaultTest 10 0 0 0 100% 0.456

info.magnolia.module.cache.util

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

Test Cases

[Summary] [Package List] [Test Cases]

CacheResponseWrapperTest

testTresholdCanBeSpecifiedForTimeConsumingResources 0.003
testTempFileSizeIsSameAsOriginalSize 0.008
testGetLastModified 0.013
cacheNegotiationHeadersAreNotSwallowedWhenAddingHeader 0.004
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse 0.002
testSetHeader 0.001
cacheNegotiationHeadersAreNotSwallowedWhenSettingHeader 0.001
replayContentAboveThresholdRespectsServeFlag 0.003

ResponseExpirationCalculatorTest

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

DefaultCacheKeyTest

equals 0
testSerializable 0.005

CacheMonitorTest

countFlush 0.287

ContentCachedEntryTest

replay 0.003

CacheModuleVersionHandlerTest

updateFrom551 3.508
updateFrom554 0.85
updateFrom556 0.686
addsUIDLPolicyIfNeeded 1.145
doesNotAddedUIDLPolicyIfAlreadyPresent 1.08
cleanInstall 1.214
updateTo54WithVirtualURICustomized 0.943
testUpdateFrom53 0.936
reconfigurationsFor54 1.017
testUpdateFrom525 1.321
testUpdateTo54InstallNewCacheToolsApp 1.046

CacheFactoryProviderTest

getByFactoryClass 0.015

RemoveCacheTempFilesTaskTest

testDeleteTempFile 0.008
testFolderWithCacheTempFilePrefixIsNotDeleted 0.011
testTempFileWhichDoesNotStartWithCacheTempPrefixIsNotDeleted 0.027
testDeleteMultipleTempFiles 0.016

CacheConfigurationSetupTest

testExecutorSetup 0.729
testVoting 0.421

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull 0.008
testFlushPolicyFallbacksToFlushAllListeningPolicy 0.008
testBrowserCachePolicyFallbacksToNeverPolicy 0.008
testCachePolicyFallbacksToNeverPolicy 0.01

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped 0.001
testGZipIfContentIsNotGZipped 0

MigrateCacheFilterConfigurationTaskTest

testMultiFilterSetup 0.057
testCustomFilterSetup 0.004
testOneFilterSetup 0.003

DelegatingCacheFactoryTest

getNullCache 0

AbstractExecutorTest

testModifiedAfterRequestHeader 0.037
testModifiedSameAsRequestHeader 0.001
testNotModifiedAfterRequestHeader 0

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles 0.013

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.007
testProcessNoCacheRequest 0.003

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong 0.003
testGzipIsSymetric 0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong 0
testGzipActuallyCompressesAtSomePoint 0.001

FlushFromCachesByUUIDCommandTest

testNPExceptionIsNotThrownIfNeverCachePolicyIsUsed 0.028

ContentCachingConfigurationTest

cacheNameCanBeDifferentThanConfigSelfName 0
cacheNameDefaultsToSelfName 0

XMagnoliaCacheAttributeTest

constructor 0.013

CacheHeadersFilterTest

testFilterNoCacheRequest 0.043
testFilterCacheRequest 0.04

SingleReplayCacheEntryWrapperTest

replayBeforeSerialization 0.006
replayAfterSerialization 0.057

TtlVotingTest

browserTtlWins 0
serverTtlWins 0

GZipFilterTest

testBufferIsFlushedAndGZipNotSetOnError 0.043
testResponseIsGzippedWhenThresholdExceeded 0.15
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters 0.036
testCacheHeadersAreAddedToTheResponse 0.033

CacheFilterTest

testFilterUsesGivenConfigAndCacheName 0.046
testServesUnzippedContentAndRemovesGzipHeadersIfClientDoesNotAcceptGZipEncoding 0.026
lockTimeoutException 0.019
testDontJustSends304WithNoBodyIfRequestHeadersAskForItButResponseIsCommitted 0.014
testServesGZippedContentIfClientAcceptsGZipEncoding 0.017
testJustSends304WithNoBodyIfRequestHeadersAskForIt 0.015
testCachedErrorsAreServed 0.013
testPageShouldBeServedIfIfNoneMatchHeaderWasPassed 0.011
testErrorsAreCached 0.011
testRedirectsAreCached 0.015
testBlindlyObeysCachePolicyAndGetsStuffOutOfCacheWhenAskedToDoSo 0.015
test304IsNotCached 0.014
bypassErrorRequests 0.011
testStoresCompressedInCacheAndRenders 0.016
otherThanRuntimeException 0.011
testIfWeAreNotWriteContentToResponseTwiceWhenTimeToLiveInSecondsIsZero 0.021
testLastModifiedHeaderCanBeOverriddenByFurtherFiltersAndIsProperlyStoredAndReturned 0.019
bypassAlreadyWrappedResponse 0.017
testDoesNothingIfCachePolicyCommandsToBypass 0.013
testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE6 0
skipped
testCachedRedirectsAreServed 0.011
testJustSends304WithNoBodyIfRequestHeadersAskForItEvenOnCommitedResponse 0.014
testStoresInCacheAndRenders 0.01

DefaultTest

testSemicolonIsEscapedInParameterValues1 0.297
testSemicolonIsEscapedInParameterValues 0.012
testCustomCacheKeyGenerator 0.013
testRefreshWithPragmaHeader 0.025
testUseCache 0.015
testRetrieveDefaultCacheKey 0.015
testBypass 0.019
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined 0.016
testRefreshWithCacheControlHeader 0.025
testDontSortParameterValuesInPlace 0.019

FlushAllListeningPolicyTest

start 0.958
stop 0.02
concurrency 0.029

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