Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
100 0 0 4 96% 13.606

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 7 0 0 0 100% 1.124
info.magnolia.module.cache.cachepolicy.voters 2 0 0 0 100% 0.004
info.magnolia.module.cache.util 4 0 0 0 100% 0.001
info.magnolia.module.cache.entry 2 0 0 0 100% 0.012
info.magnolia.module.cache.cachepolicy 10 0 0 0 100% 0.341
info.magnolia.module.cache.cachekey 2 0 0 0 100% 0.019
info.magnolia.module.cache.filter 56 0 0 4 92.857% 5.527
info.magnolia.module.cache.setup 12 0 0 0 100% 6.534
info.magnolia.module.cache.executor 5 0 0 0 100% 0.044

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

info.magnolia.module.cache

Class Tests Errors Failures Skipped Success Rate Time
CacheConfigurationTest 4 0 0 0 100% 0.507
ContentCachingConfigurationTest 2 0 0 0 100% 0
FlushAllListeningPolicyTest 1 0 0 0 100% 0.617

info.magnolia.module.cache.cachepolicy.voters

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

info.magnolia.module.cache.util

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

info.magnolia.module.cache.entry

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

info.magnolia.module.cache.cachepolicy

Class Tests Errors Failures Skipped Success Rate Time
DefaultTest 10 0 0 0 100% 0.341

info.magnolia.module.cache.cachekey

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

info.magnolia.module.cache.filter

Class Tests Errors Failures Skipped Success Rate Time
CacheConfigurationSetupTest 2 0 0 0 100% 4.514
CacheFilterTest 21 0 0 1 95.238% 0.46
CacheHeadersFilterTest 2 0 0 0 100% 0.114
CacheResponseWrapperTest 5 0 0 0 100% 0.044
DelegatingBlobCachedEntryTest 1 0 0 0 100% 0.019
GZipFilterTest 5 0 0 0 100% 0.372
InMemoryCachedPageTest 2 0 0 0 100% 0
ResponseExpirationCalculatorTest 15 0 0 0 100% 0.004
StandaloneGZipFilterTest 3 0 0 3 0% 0

info.magnolia.module.cache.setup

Class Tests Errors Failures Skipped Success Rate Time
CacheModuleVersionHandlerTest 8 0 0 0 100% 6.504
RemoveCacheTempFilesTaskTest 4 0 0 0 100% 0.03

info.magnolia.module.cache.executor

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

Test Cases

[Summary] [Package List] [Test Cases]

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull 0.474
testFlushPolicyFallbacksToFlushAllListeningPolicy 0.01
testBrowserCachePolicyFallbacksToNeverPolicy 0.012
testCachePolicyFallbacksToNeverPolicy 0.011

DefaultCacheKeyTest

equals 0
testSerializable 0.019

DefaultTest

testSemicolonIsEscapedInParameterValues1 0.148
testSemicolonIsEscapedInParameterValues 0.017
testCustomCacheKeyGenerator 0.023
testRefreshWithPragmaHeader 0.032
testUseCache 0.019
testRetrieveDefaultCacheKey 0.016
testBypass 0.023
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined 0.029
testRefreshWithCacheControlHeader 0.018
testDontSortParameterValuesInPlace 0.016

TtlVotingTest

browserTtlWins 0.002
serverTtlWins 0.002

ContentCachingConfigurationTest

cacheNameCanBeDifferentThanConfigSelfName 0
cacheNameDefaultsToSelfName 0

SingleReplayCacheEntryWrapperTest

replayBeforeSerialization 0.008
replayAfterSerialization 0.004

AbstractExecutorTest

testModifiedAfterRequestHeader 0.033
testModifiedSameAsRequestHeader 0.001
testNotModifiedAfterRequestHeader 0.001

SetExpirationHeadersTest

testProcessCacheRequest 0.007
testProcessNoCacheRequest 0.002

CacheConfigurationSetupTest

testExecutorSetup 3.291
testVoting 1.223

CacheFilterTest

testFilterUsesGivenConfigAndCacheName 0.022
testServesUnzippedContentAndRemovesGzipHeadersIfClientDoesNotAcceptGZipEncoding 0.041
lockTimeoutException 0.023
testDontJustSends304WithNoBodyIfRequestHeadersAskForItButResponseIsCommitted 0.027
testServesGZippedContentIfClientAcceptsGZipEncoding 0.021
testJustSends304WithNoBodyIfRequestHeadersAskForIt 0.018
testCachedErrorsAreServed 0.016
testPageShouldBeServedIfIfNoneMatchHeaderWasPassed 0.02
testErrorsAreCached 0.045
testRedirectsAreCached 0.017
testBlindlyObeysCachePolicyAndGetsStuffOutOfCacheWhenAskedToDoSo 0.02
test304IsNotCached 0.035
testStoresCompressedInCacheAndRenders 0.017
otherThanRuntimeException 0.013
testIfWeAreNotWriteContentToResponseTwiceWhenTimeToLiveInSecondsIsZero 0.02
testLastModifiedHeaderCanBeOverriddenByFurtherFiltersAndIsProperlyStoredAndReturned 0.046
testDoesNothingIfCachePolicyCommandsToBypass 0.012
testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE6 0
skipped
testCachedRedirectsAreServed 0.013
testJustSends304WithNoBodyIfRequestHeadersAskForItEvenOnCommitedResponse 0.018
testStoresInCacheAndRenders 0.016

CacheHeadersFilterTest

testFilterNoCacheRequest 0.073
testFilterCacheRequest 0.041

CacheResponseWrapperTest

testTresholdCanBeSpecifiedForTimeConsumingResources 0.003
testTempFileSizeIsSameAsOriginalSize 0.027
testGetLastModified 0.009
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse 0.003
testSetHeader 0.002

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles 0.019

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled 0.052
testBufferIsFlushedAndGZipNotSetOnError 0.042
testResponseIsGzippedWhenThresholdExceeded 0.19
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters 0.052
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled 0.036

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped 0
testGZipIfContentIsNotGZipped 0

ResponseExpirationCalculatorTest

testDetectsSharedCacheMaxAge 0.002
testWontCacheWhenCacheControlNoCache 0
testDetectsExpiresAsInt 0.001
testChoosesMostRestrictiveCacheControlMaxAge 0
testWontCacheWhenPragmaNoCache 0
testDetectsCacheControlMaxAge 0
testDetectsExpiresAsLong 0
testDetectsExpiresAsString 0
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

testAllRepositoriesExceptExplicitlyDefined 0.617

CacheModuleVersionHandlerTest

addsUIDLPolicyIfNeeded 1.427
doesNotAddedUIDLPolicyIfAlreadyPresent 0.983
updateTo54WithVirtualURICustomized 0.833
testUpdateFrom53 0.764
reconfigurationsFor54 0.696
testUpdateFrom525 0.636
testCleanInstall 0.647
testUpdateTo54InstallNewCacheToolsApp 0.518

RemoveCacheTempFilesTaskTest

testDeleteTempFile 0.003
testFolderWithCacheTempFilePrefixIsNotDeleted 0.009
testTempFileWhichDoesNotStartWithCacheTempPrefixIsNotDeleted 0.009
testDeleteMultipleTempFiles 0.009

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