Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
116 0 0 4 96.552% 9.039

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.commands 1 0 0 0 100% 0.012
info.magnolia.module.cache.entry 2 0 0 0 100% 0.006
info.magnolia.module.cache.mbean 1 0 0 0 100% 0
info.magnolia.module.cache.cachekey 2 0 0 0 100% 0.012
info.magnolia.module.cache.factory 1 0 0 0 100% 0
info.magnolia.module.cache 9 0 0 0 100% 0.545
info.magnolia.module.cache.executor 5 0 0 0 100% 0.02
info.magnolia.module.cache.setup 17 0 0 0 100% 6.259
info.magnolia.module.cache.inject 1 0 0 0 100% 0.001
info.magnolia.module.cache.cachepolicy.voters 2 0 0 0 100% 0.001
info.magnolia.module.cache.cachepolicy 11 0 0 0 100% 0.143
info.magnolia.module.cache.filter 60 0 0 4 93.333% 2.04
info.magnolia.module.cache.util 4 0 0 0 100% 0

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

info.magnolia.module.cache.commands

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

info.magnolia.module.cache.entry

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

info.magnolia.module.cache.mbean

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

info.magnolia.module.cache.cachekey

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

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

info.magnolia.module.cache.executor

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

info.magnolia.module.cache.setup

Class Tests Errors Failures Skipped Success Rate Time
CacheModuleVersionHandlerTest 10 0 0 0 100% 6.213
MigrateCacheFilterConfigurationTaskTest 3 0 0 0 100% 0.022
RemoveCacheTempFilesTaskTest 4 0 0 0 100% 0.024

info.magnolia.module.cache.inject

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

info.magnolia.module.cache.cachepolicy.voters

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

info.magnolia.module.cache.cachepolicy

Class Tests Errors Failures Skipped Success Rate Time
DefaultTest 10 0 0 0 100% 0.14
XMagnoliaCacheAttributeTest 1 0 0 0 100% 0.003

info.magnolia.module.cache.filter

Class Tests Errors Failures Skipped Success Rate Time
CacheConfigurationSetupTest 2 0 0 0 100% 1.656
CacheFilterTest 23 0 0 1 95.652% 0.151
CacheHeadersFilterTest 2 0 0 0 100% 0.045
CacheResponseWrapperTest 7 0 0 0 100% 0.015
ContentCachedEntryTest 1 0 0 0 100% 0
DelegatingBlobCachedEntryTest 1 0 0 0 100% 0.003
GZipFilterTest 4 0 0 0 100% 0.165
InMemoryCachedPageTest 2 0 0 0 100% 0
ResponseExpirationCalculatorTest 15 0 0 0 100% 0.005
StandaloneGZipFilterTest 3 0 0 3 0% 0

info.magnolia.module.cache.util

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

Test Cases

[Summary] [Package List] [Test Cases]

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull 0.201
testFlushPolicyFallbacksToFlushAllListeningPolicy 0.003
testBrowserCachePolicyFallbacksToNeverPolicy 0.004
testCachePolicyFallbacksToNeverPolicy 0.004

DefaultCacheKeyTest

equals 0
testSerializable 0.012

DefaultTest

testSemicolonIsEscapedInParameterValues1 0.077
testSemicolonIsEscapedInParameterValues 0.005
testCustomCacheKeyGenerator 0.006
testRefreshWithPragmaHeader 0.011
testUseCache 0.006
testRetrieveDefaultCacheKey 0.005
testBypass 0.008
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined 0.005
testRefreshWithCacheControlHeader 0.012
testDontSortParameterValuesInPlace 0.005

TtlVotingTest

browserTtlWins 0
serverTtlWins 0.001

XMagnoliaCacheAttributeTest

constructor 0.003

FlushFromCachesByUUIDCommandTest

testNPExceptionIsNotThrownIfNeverCachePolicyIsUsed 0.012

ContentCachingConfigurationTest

cacheNameCanBeDifferentThanConfigSelfName 0
cacheNameDefaultsToSelfName 0

SingleReplayCacheEntryWrapperTest

replayBeforeSerialization 0.004
replayAfterSerialization 0.002

AbstractExecutorTest

testModifiedAfterRequestHeader 0.016
testModifiedSameAsRequestHeader 0.001
testNotModifiedAfterRequestHeader 0

SetExpirationHeadersTest

testProcessCacheRequest 0.003
testProcessNoCacheRequest 0

DelegatingCacheFactoryTest

getNullCache 0

CacheConfigurationSetupTest

testExecutorSetup 1.316
testVoting 0.34

CacheFilterTest

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

CacheHeadersFilterTest

testFilterNoCacheRequest 0.025
testFilterCacheRequest 0.02

CacheResponseWrapperTest

testTresholdCanBeSpecifiedForTimeConsumingResources 0.001
testTempFileSizeIsSameAsOriginalSize 0.004
testGetLastModified 0.006
cacheNegotiationHeadersAreNotSwallowedWhenAddingHeader 0.002
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse 0.001
testSetHeader 0.001
cacheNegotiationHeadersAreNotSwallowedWhenSettingHeader 0

ContentCachedEntryTest

replay 0

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles 0.003

GZipFilterTest

testBufferIsFlushedAndGZipNotSetOnError 0.018
testResponseIsGzippedWhenThresholdExceeded 0.104
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters 0.022
testCacheHeadersAreAddedToTheResponse 0.021

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped 0
testGZipIfContentIsNotGZipped 0

ResponseExpirationCalculatorTest

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

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

FlushAllListeningPolicyTest

start 0.306
stop 0.012
concurrency 0.015

CacheFactoryProviderTest

getByFactoryClass 0.001

CacheMonitorTest

countFlush 0

CacheModuleVersionHandlerTest

updateFrom551 0.612
updateFrom554 0.417
addsUIDLPolicyIfNeeded 0.58
doesNotAddedUIDLPolicyIfAlreadyPresent 0.784
cleanInstall 0.639
updateTo54WithVirtualURICustomized 0.606
testUpdateFrom53 0.604
reconfigurationsFor54 0.699
testUpdateFrom525 0.584
testUpdateTo54InstallNewCacheToolsApp 0.688

MigrateCacheFilterConfigurationTaskTest

testMultiFilterSetup 0.018
testCustomFilterSetup 0.001
testOneFilterSetup 0.003

RemoveCacheTempFilesTaskTest

testDeleteTempFile 0.001
testFolderWithCacheTempFilePrefixIsNotDeleted 0.007
testTempFileWhichDoesNotStartWithCacheTempPrefixIsNotDeleted 0.009
testDeleteMultipleTempFiles 0.007

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong 0
testGzipIsSymetric 0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong 0
testGzipActuallyCompressesAtSomePoint 0

Failure Details

[Summary] [Package List] [Test Cases]


testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE6
skipped: skipped
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