Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.017
info.magnolia.module.cache.entry 2 0 0 0 100% 0.009
info.magnolia.module.cache.mbean 1 0 0 0 100% 0
info.magnolia.module.cache.cachekey 2 0 0 0 100% 0.015
info.magnolia.module.cache.factory 1 0 0 0 100% 0
info.magnolia.module.cache 9 0 0 0 100% 1.323
info.magnolia.module.cache.executor 5 0 0 0 100% 0.025
info.magnolia.module.cache.setup 18 0 0 0 100% 7.806
info.magnolia.module.cache.inject 1 0 0 0 100% 0.002
info.magnolia.module.cache.cachepolicy.voters 2 0 0 0 100% 0
info.magnolia.module.cache.cachepolicy 11 0 0 0 100% 0.177
info.magnolia.module.cache.filter 61 0 0 4 93.443% 3.547
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.commands

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

info.magnolia.module.cache.entry

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

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

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

info.magnolia.module.cache.executor

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

info.magnolia.module.cache.setup

Class Tests Errors Failures Skipped Success Rate Time
CacheModuleVersionHandlerTest 11 0 0 0 100% 7.756
MigrateCacheFilterConfigurationTaskTest 3 0 0 0 100% 0.024
RemoveCacheTempFilesTaskTest 4 0 0 0 100% 0.026

info.magnolia.module.cache.inject

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

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

Class Tests Errors Failures Skipped Success Rate Time
DefaultTest 10 0 0 0 100% 0.172
XMagnoliaCacheAttributeTest 1 0 0 0 100% 0.005

info.magnolia.module.cache.filter

Class Tests Errors Failures Skipped Success Rate Time
CacheConfigurationSetupTest 2 0 0 0 100% 2.921
CacheFilterTest 23 0 0 1 95.652% 0.31
CacheHeadersFilterTest 2 0 0 0 100% 0.054
CacheResponseWrapperTest 8 0 0 0 100% 0.055
ContentCachedEntryTest 1 0 0 0 100% 0.004
DelegatingBlobCachedEntryTest 1 0 0 0 100% 0.006
GZipFilterTest 4 0 0 0 100% 0.187
InMemoryCachedPageTest 2 0 0 0 100% 0.001
ResponseExpirationCalculatorTest 15 0 0 0 100% 0.009
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.001

Test Cases

[Summary] [Package List] [Test Cases]

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull 0.533
testFlushPolicyFallbacksToFlushAllListeningPolicy 0.004
testBrowserCachePolicyFallbacksToNeverPolicy 0.004
testCachePolicyFallbacksToNeverPolicy 0.005

DefaultCacheKeyTest

equals 0
testSerializable 0.015

DefaultTest

testSemicolonIsEscapedInParameterValues1 0.093
testSemicolonIsEscapedInParameterValues 0.008
testCustomCacheKeyGenerator 0.009
testRefreshWithPragmaHeader 0.014
testUseCache 0.008
testRetrieveDefaultCacheKey 0.006
testBypass 0.009
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined 0.008
testRefreshWithCacheControlHeader 0.01
testDontSortParameterValuesInPlace 0.007

TtlVotingTest

browserTtlWins 0
serverTtlWins 0

XMagnoliaCacheAttributeTest

constructor 0.005

FlushFromCachesByUUIDCommandTest

testNPExceptionIsNotThrownIfNeverCachePolicyIsUsed 0.017

ContentCachingConfigurationTest

cacheNameCanBeDifferentThanConfigSelfName 0
cacheNameDefaultsToSelfName 0

SingleReplayCacheEntryWrapperTest

replayBeforeSerialization 0.005
replayAfterSerialization 0.004

AbstractExecutorTest

testModifiedAfterRequestHeader 0.02
testModifiedSameAsRequestHeader 0.001
testNotModifiedAfterRequestHeader 0

SetExpirationHeadersTest

testProcessCacheRequest 0.003
testProcessNoCacheRequest 0.001

DelegatingCacheFactoryTest

getNullCache 0

CacheConfigurationSetupTest

testExecutorSetup 2.321
testVoting 0.6

CacheFilterTest

testFilterUsesGivenConfigAndCacheName 0.022
testServesUnzippedContentAndRemovesGzipHeadersIfClientDoesNotAcceptGZipEncoding 0.051
lockTimeoutException 0.019
testDontJustSends304WithNoBodyIfRequestHeadersAskForItButResponseIsCommitted 0.013
testServesGZippedContentIfClientAcceptsGZipEncoding 0.012
testJustSends304WithNoBodyIfRequestHeadersAskForIt 0.011
testCachedErrorsAreServed 0.01
testPageShouldBeServedIfIfNoneMatchHeaderWasPassed 0.011
testErrorsAreCached 0.013
testRedirectsAreCached 0.012
testBlindlyObeysCachePolicyAndGetsStuffOutOfCacheWhenAskedToDoSo 0.012
test304IsNotCached 0.01
bypassErrorRequests 0.009
testStoresCompressedInCacheAndRenders 0.041
otherThanRuntimeException 0.006
testIfWeAreNotWriteContentToResponseTwiceWhenTimeToLiveInSecondsIsZero 0.011
testLastModifiedHeaderCanBeOverriddenByFurtherFiltersAndIsProperlyStoredAndReturned 0.009
bypassAlreadyWrappedResponse 0.008
testDoesNothingIfCachePolicyCommandsToBypass 0.006
testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE6 0
skipped
testCachedRedirectsAreServed 0.006
testJustSends304WithNoBodyIfRequestHeadersAskForItEvenOnCommitedResponse 0.009
testStoresInCacheAndRenders 0.009

CacheHeadersFilterTest

testFilterNoCacheRequest 0.035
testFilterCacheRequest 0.019

CacheResponseWrapperTest

testTresholdCanBeSpecifiedForTimeConsumingResources 0.007
testTempFileSizeIsSameAsOriginalSize 0.008
testGetLastModified 0.012
cacheNegotiationHeadersAreNotSwallowedWhenAddingHeader 0.005
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse 0.006
testSetHeader 0.006
cacheNegotiationHeadersAreNotSwallowedWhenSettingHeader 0.006
replayContentAboveThresholdRespectsServeFlag 0.005

ContentCachedEntryTest

replay 0.004

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles 0.006

GZipFilterTest

testBufferIsFlushedAndGZipNotSetOnError 0.025
testResponseIsGzippedWhenThresholdExceeded 0.116
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters 0.026
testCacheHeadersAreAddedToTheResponse 0.02

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped 0
testGZipIfContentIsNotGZipped 0.001

ResponseExpirationCalculatorTest

testDetectsSharedCacheMaxAge 0.006
testWontCacheWhenCacheControlNoCache 0
testDetectsExpiresAsInt 0
testChoosesMostRestrictiveCacheControlMaxAge 0
testWontCacheWhenPragmaNoCache 0
testDetectsCacheControlMaxAge 0.001
testDetectsExpiresAsLong 0
testDetectsExpiresAsString 0.001
testWontCacheWhenCacheControlPrivate 0
testChoosesMostRestrictiveSharedCache 0
testSharedCacheMaxAgeOverridesExpires 0.001
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.749
stop 0.012
concurrency 0.016

CacheFactoryProviderTest

getByFactoryClass 0.002

CacheMonitorTest

countFlush 0

CacheModuleVersionHandlerTest

updateFrom551 1.039
updateFrom554 0.644
updateFrom56 0.581
addsUIDLPolicyIfNeeded 0.739
doesNotAddedUIDLPolicyIfAlreadyPresent 0.715
cleanInstall 0.896
updateTo54WithVirtualURICustomized 0.711
testUpdateFrom53 0.653
reconfigurationsFor54 0.608
testUpdateFrom525 0.607
testUpdateTo54InstallNewCacheToolsApp 0.563

MigrateCacheFilterConfigurationTaskTest

testMultiFilterSetup 0.022
testCustomFilterSetup 0.001
testOneFilterSetup 0.001

RemoveCacheTempFilesTaskTest

testDeleteTempFile 0.004
testFolderWithCacheTempFilePrefixIsNotDeleted 0.008
testTempFileWhichDoesNotStartWithCacheTempPrefixIsNotDeleted 0.006
testDeleteMultipleTempFiles 0.008

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong 0
testGzipIsSymetric 0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong 0
testGzipActuallyCompressesAtSomePoint 0.001

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