Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
105 0 0 4 96.19% 22.13

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.entry 2 0 0 0 100% 0.067
info.magnolia.module.cache.cachekey 2 0 0 0 100% 0.048
info.magnolia.module.cache.cachepolicy.voters 2 0 0 0 100% 0.002
info.magnolia.module.cache 7 0 0 0 100% 1.954
info.magnolia.module.cache.cachepolicy 10 0 0 0 100% 0.589
info.magnolia.module.cache.filter 58 0 0 4 93.103% 8.771
info.magnolia.module.cache.util 4 0 0 0 100% 0.002
info.magnolia.module.cache.executor 5 0 0 0 100% 0.053
info.magnolia.module.cache.setup 15 0 0 0 100% 10.644

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

info.magnolia.module.cache.entry

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

info.magnolia.module.cache.cachekey

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

info.magnolia.module.cache.cachepolicy.voters

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

info.magnolia.module.cache

Class Tests Errors Failures Skipped Success Rate Time
CacheConfigurationTest 4 0 0 0 100% 0.998
ContentCachingConfigurationTest 2 0 0 0 100% 0.001
FlushAllListeningPolicyTest 1 0 0 0 100% 0.955

info.magnolia.module.cache.cachepolicy

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

info.magnolia.module.cache.filter

Class Tests Errors Failures Skipped Success Rate Time
CacheConfigurationSetupTest 2 0 0 0 100% 7.182
CacheFilterTest 21 0 0 1 95.238% 0.748
CacheHeadersFilterTest 2 0 0 0 100% 0.163
CacheResponseWrapperTest 7 0 0 0 100% 0.05
ContentCachedEntryTest 1 0 0 0 100% 0.006
DelegatingBlobCachedEntryTest 1 0 0 0 100% 0.006
GZipFilterTest 4 0 0 0 100% 0.609
InMemoryCachedPageTest 2 0 0 0 100% 0.001
ResponseExpirationCalculatorTest 15 0 0 0 100% 0.006
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.002

info.magnolia.module.cache.executor

Class Tests Errors Failures Skipped Success Rate Time
AbstractExecutorTest 3 0 0 0 100% 0.045
SetExpirationHeadersTest 2 0 0 0 100% 0.008

info.magnolia.module.cache.setup

Class Tests Errors Failures Skipped Success Rate Time
CacheModuleVersionHandlerTest 8 0 0 0 100% 10.538
MigrateCacheFilterConfigurationTaskTest 3 0 0 0 100% 0.047
RemoveCacheTempFilesTaskTest 4 0 0 0 100% 0.059

Test Cases

[Summary] [Package List] [Test Cases]

CacheConfigurationTest

testExecutorFallbacksToDefaultIfNull 0.947
testFlushPolicyFallbacksToFlushAllListeningPolicy 0.009
testBrowserCachePolicyFallbacksToNeverPolicy 0.025
testCachePolicyFallbacksToNeverPolicy 0.017

DefaultCacheKeyTest

equals 0.006
testSerializable 0.042

DefaultTest

testSemicolonIsEscapedInParameterValues1 0.287
testSemicolonIsEscapedInParameterValues 0.051
testCustomCacheKeyGenerator 0.036
testRefreshWithPragmaHeader 0.038
testUseCache 0.038
testRetrieveDefaultCacheKey 0.021
testBypass 0.034
testRetrieveDefaultCacheKeyWhenRequestParamHasMoreValuesDefined 0.044
testRefreshWithCacheControlHeader 0.026
testDontSortParameterValuesInPlace 0.014

TtlVotingTest

browserTtlWins 0.001
serverTtlWins 0.001

ContentCachingConfigurationTest

cacheNameCanBeDifferentThanConfigSelfName 0
cacheNameDefaultsToSelfName 0.001

SingleReplayCacheEntryWrapperTest

replayBeforeSerialization 0.029
replayAfterSerialization 0.038

AbstractExecutorTest

testModifiedAfterRequestHeader 0.044
testModifiedSameAsRequestHeader 0
testNotModifiedAfterRequestHeader 0.001

SetExpirationHeadersTest

testProcessCacheRequest 0.006
testProcessNoCacheRequest 0.002

CacheConfigurationSetupTest

testExecutorSetup 5.754
testVoting 1.428

CacheFilterTest

testFilterUsesGivenConfigAndCacheName 0.066
testServesUnzippedContentAndRemovesGzipHeadersIfClientDoesNotAcceptGZipEncoding 0.058
lockTimeoutException 0.102
testDontJustSends304WithNoBodyIfRequestHeadersAskForItButResponseIsCommitted 0.016
testServesGZippedContentIfClientAcceptsGZipEncoding 0.019
testJustSends304WithNoBodyIfRequestHeadersAskForIt 0.087
testCachedErrorsAreServed 0.014
testPageShouldBeServedIfIfNoneMatchHeaderWasPassed 0.022
testErrorsAreCached 0.026
testRedirectsAreCached 0.022
testBlindlyObeysCachePolicyAndGetsStuffOutOfCacheWhenAskedToDoSo 0.038
test304IsNotCached 0.018
testStoresCompressedInCacheAndRenders 0.083
otherThanRuntimeException 0.023
testIfWeAreNotWriteContentToResponseTwiceWhenTimeToLiveInSecondsIsZero 0.018
testLastModifiedHeaderCanBeOverriddenByFurtherFiltersAndIsProperlyStoredAndReturned 0.037
testDoesNothingIfCachePolicyCommandsToBypass 0.019
testIgnoreEncodingAndServeContentFlatWhenUserAgentIsIE6 0
skipped
testCachedRedirectsAreServed 0.026
testJustSends304WithNoBodyIfRequestHeadersAskForItEvenOnCommitedResponse 0.027
testStoresInCacheAndRenders 0.027

CacheHeadersFilterTest

testFilterNoCacheRequest 0.098
testFilterCacheRequest 0.065

CacheResponseWrapperTest

testTresholdCanBeSpecifiedForTimeConsumingResources 0.007
testTempFileSizeIsSameAsOriginalSize 0.023
testGetLastModified 0.01
cacheNegotiationHeadersAreNotSwallowedWhenAddingHeader 0.004
testTresholdReachedReturnFileOutputStreamWhenServeIfThresholdReachedIsSetToFalse 0.002
testSetHeader 0.001
cacheNegotiationHeadersAreNotSwallowedWhenSettingHeader 0.003

ContentCachedEntryTest

replay 0.006

DelegatingBlobCachedEntryTest

testWriteContentRemovesStreamingFiles 0.006

GZipFilterTest

testBufferIsFlushedAndGZipNotSetOnError 0.099
testResponseIsGzippedWhenThresholdExceeded 0.306
testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters 0.088
testCacheHeadersAreAddedToTheResponse 0.116

InMemoryCachedPageTest

testUnGZipIfContentIsGZipped 0.001
testGZipIfContentIsNotGZipped 0

ResponseExpirationCalculatorTest

testDetectsSharedCacheMaxAge 0.003
testWontCacheWhenCacheControlNoCache 0
testDetectsExpiresAsInt 0
testChoosesMostRestrictiveCacheControlMaxAge 0
testWontCacheWhenPragmaNoCache 0
testDetectsCacheControlMaxAge 0
testDetectsExpiresAsLong 0
testDetectsExpiresAsString 0.001
testWontCacheWhenCacheControlPrivate 0.001
testChoosesMostRestrictiveSharedCache 0
testSharedCacheMaxAgeOverridesExpires 0
testChoosesMostRestrictiveExpires 0
testCacheControlMaxAgeOverridesExpires 0
testConsumesCacheHeaders 0.001
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.955

CacheModuleVersionHandlerTest

addsUIDLPolicyIfNeeded 2.289
doesNotAddedUIDLPolicyIfAlreadyPresent 1.507
updateTo54WithVirtualURICustomized 1.289
testUpdateFrom53 1.242
reconfigurationsFor54 1.134
testUpdateFrom525 1.082
testCleanInstall 1.016
testUpdateTo54InstallNewCacheToolsApp 0.979

MigrateCacheFilterConfigurationTaskTest

testMultiFilterSetup 0.042
testCustomFilterSetup 0.003
testOneFilterSetup 0.002

RemoveCacheTempFilesTaskTest

testDeleteTempFile 0.004
testFolderWithCacheTempFilePrefixIsNotDeleted 0.018
testTempFileWhichDoesNotStartWithCacheTempPrefixIsNotDeleted 0.013
testDeleteMultipleTempFiles 0.024

GZipUtilTest

testGzipped1ByteArrayShouldNotBe20BytesLong 0
testGzipIsSymetric 0.001
testGzippedEmptyByteArrayShouldBeExactly20BytesLong 0.001
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