Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
103 0 0 4 96.117% 13.757

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% 0.731
info.magnolia.module.cache.cachepolicy.voters 2 0 0 0 100% 0.004
info.magnolia.module.cache.cachepolicy 10 0 0 0 100% 0.282
info.magnolia.module.cache.util 4 0 0 0 100% 0.001
info.magnolia.module.cache.entry 2 0 0 0 100% 0.009
info.magnolia.module.cache.cachekey 2 0 0 0 100% 0.016
info.magnolia.module.cache.filter 56 0 0 4 92.857% 1.693
info.magnolia.module.cache.setup 15 0 0 0 100% 11.018
info.magnolia.module.cache.executor 5 0 0 0 100% 0.003

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.346
ContentCachingConfigurationTest 2 0 0 0 100% 0
FlushAllListeningPolicyTest 1 0 0 0 100% 0.385

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

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

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

info.magnolia.module.cache.cachekey

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

info.magnolia.module.cache.filter

Class Tests Errors Failures Skipped Success Rate Time
CacheConfigurationSetupTest 2 0 0 0 100% 0.995
DelegatingBlobCachedEntryTest 1 0 0 0 100% 0.008
InMemoryCachedPageTest 2 0 0 0 100% 0
StandaloneGZipFilterTest 3 0 0 3 0% 0
CacheFilterTest 21 0 0 1 95.238% 0.257
ResponseExpirationCalculatorTest 15 0 0 0 100% 0.005
CacheResponseWrapperTest 5 0 0 0 100% 0.019
CacheHeadersFilterTest 2 0 0 0 100% 0.083
GZipFilterTest 5 0 0 0 100% 0.326

info.magnolia.module.cache.setup

Class Tests Errors Failures Skipped Success Rate Time
MigrateCacheFilterConfigurationTaskTest 3 0 0 0 100% 0.04
CacheModuleVersionHandlerTest 8 0 0 0 100% 10.954
RemoveCacheTempFilesTaskTest 4 0 0 0 100% 0.024

info.magnolia.module.cache.executor

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

Test Cases

[Summary] [Package List] [Test Cases]

CacheConfigurationSetupTest

testExecutorSetup 0.571
testVoting 0.424

MigrateCacheFilterConfigurationTaskTest

testMultiFilterSetup 0.036
testCustomFilterSetup 0.004
testOneFilterSetup 0

DefaultCacheKeyTest

equals 0
testSerializable 0.016

SingleReplayCacheEntryWrapperTest

replayBeforeSerialization 0.005
replayAfterSerialization 0.004

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong 0
testGzipIsSymetric 0
testGzippedEmptyByteArrayShouldBeExactly20BytesLong 0.001
testGzipActuallyCompressesAtSomePoint 0

CacheModuleVersionHandlerTest

addsUIDLPolicyIfNeeded 3.819
doesNotAddedUIDLPolicyIfAlreadyPresent 2.104
updateTo54WithVirtualURICustomized 1.295
testUpdateFrom53 0.947
reconfigurationsFor54 0.75
testUpdateFrom525 0.754
testCleanInstall 0.719
testUpdateTo54InstallNewCacheToolsApp 0.566

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles 0.008

AbstractExecutorTest

testModifiedAfterRequestHeader 0
testModifiedSameAsRequestHeader 0
testNotModifiedAfterRequestHeader 0.001

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped 0
testGZipIfContentIsNotGZipped 0

DefaultTest

testSemicolonIsEscapedInParameterValues1 0.131
testSemicolonIsEscapedInParameterValues 0.012
testCustomCacheKeyGenerator 0.021
testRefreshWithPragmaHeader 0.035
testUseCache 0.014
testRetrieveDefaultCacheKey 0.014
testBypass 0.016
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined 0.012
testRefreshWithCacheControlHeader 0.013
testDontSortParameterValuesInPlace 0.014

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.319
testFlushPolicyFallbacksToFlushAllListeningPolicy 0.007
testBrowserCachePolicyFallbacksToNeverPolicy 0.01
testCachePolicyFallbacksToNeverPolicy 0.01

RemoveCacheTempFilesTaskTest

testDeleteTempFile 0.004
testFolderWithCacheTempFilePrefixIsNotDeleted 0.007
testTempFileWhichDoesNotStartWithCacheTempPrefixIsNotDeleted 0.007
testDeleteMultipleTempFiles 0.006

SetExpirationHeadersTest

testProcessCacheRequest 0.001
testProcessNoCacheRequest 0.001

TtlVotingTest

browserTtlWins 0.002
serverTtlWins 0.002

CacheFilterTest

testFilterUsesGivenConfigAndCacheName 0.016
testServesUnzippedContentAndRemovesGzipHeadersIfClientDoesNotAcceptGZipEncoding 0.018
lockTimeoutException 0.019
testDontJustSends304WithNoBodyIfRequestHeadersAskForItButResponseIsCommitted 0.015
testServesGZippedContentIfClientAcceptsGZipEncoding 0.012
testJustSends304WithNoBodyIfRequestHeadersAskForIt 0.011
testCachedErrorsAreServed 0.009
testPageShouldBeServedIfIfNoneMatchHeaderWasPassed 0.012
testErrorsAreCached 0.014
testRedirectsAreCached 0.023
testBlindlyObeysCachePolicyAndGetsStuffOutOfCacheWhenAskedToDoSo 0.012
test304IsNotCached 0.009
testStoresCompressedInCacheAndRenders 0.01
otherThanRuntimeException 0.009
testIfWeAreNotWriteContentToResponseTwiceWhenTimeToLiveInSecondsIsZero 0.014
testLastModifiedHeaderCanBeOverriddenByFurtherFiltersAndIsProperlyStoredAndReturned 0.013
testDoesNothingIfCachePolicyCommandsToBypass 0.009
testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE6 0
skipped
testCachedRedirectsAreServed 0.009
testJustSends304WithNoBodyIfRequestHeadersAskForItEvenOnCommitedResponse 0.011
testStoresInCacheAndRenders 0.012

ContentCachingConfigurationTest

cacheNameCanBeDifferentThanConfigSelfName 0
cacheNameDefaultsToSelfName 0

FlushAllListeningPolicyTest

testAllRepositoriesExceptExplicitlyDefined 0.385

ResponseExpirationCalculatorTest

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

CacheResponseWrapperTest

testTresholdCanBeSpecifiedForTimeConsumingResources 0.001
testTempFileSizeIsSameAsOriginalSize 0.013
testGetLastModified 0.004
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse 0.001
testSetHeader 0

CacheHeadersFilterTest

testFilterNoCacheRequest 0.056
testFilterCacheRequest 0.027

GZipFilterTest

testCacheHeadersAreAddedToTheResponseWhenResponseExpirationCalculatorDisabled 0.04
testBufferIsFlushedAndGZipNotSetOnError 0.039
testResponseIsGzippedWhenThresholdExceeded 0.149
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters 0.064
testCacheHeadersAreNotAddedToTheResponseWhenResponseExpirationCalculatorEnabled 0.034

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