Surefire Report

Summary


Tests Errors Failures Skipped Success Rate Time
27 0 0 0 100% 3.509

Note: failures are anticipated and checked for with assertions while errors are unanticipated.

Package List


Package Tests Errors Failures Skipped Success Rate Time
info.magnolia.module.cache.filter 23 0 0 0 100% 3.479
info.magnolia.module.cache.util 4 0 0 0 100% 0.03

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

info.magnolia.module.cache.filter

Class Tests Errors Failures Skipped Success Rate Time
CacheConfigurationSetupTest 2 0 0 0 100% 3.275
CachedPageTest 3 0 0 0 100% 0.002
CacheFilterTest 14 0 0 0 100% 0.058
GZipFilterTest 1 0 0 0 100% 0.141
StandaloneGZipFilterTest 3 0 0 0 100% 0.003

info.magnolia.module.cache.util

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

Test Cases

CacheConfigurationSetupTest

testVoting 2.344
testExecutorSetup 0.632

CachedPageTest

testUnzipsContentIfPassedContentIsGZippedAndNotOfGzipMimeType 0
testDoesNotAttemptToUnzipIfMimeTypeSaysTheContentIsGZipEvenIfContentActuallyIsGZipped 0.001
testDoesNotAttemptToUnzipIfContentIsNotGZipped 0

CacheFilterTest

testFilterUsesGivenConfigAndCacheName 0.022
testStoresInCacheAndRenders 0.009
testBlindlyObeysCachePolicyAndGetsStuffOutOfCacheWhenAskedToDoSo 0.005
testServesUnzippedContentAndRemovesGzipHeadersIfClientDoesNotAcceptGZipEncoding 0.002
testServesGZippedContentIfClientAcceptsGZipEncoding 0.002
testDoesNothingIfCachePolicyCommandsToBypass 0.001
testJustSends304WithNoBodyIfRequestHeadersAskForIt 0.001
testPageShouldBeServedIfIfNoneMatchHeaderWasPassed 0.002
testRedirectsAreCached 0.002
testCachedRedirectsAreServed 0.001
testErrorsAreCached 0.001
testCachedErrorsAreServed 0
testLastModifiedHeaderCanBeOverriddenByFurtherFiltersAndIsProperlyStoredAndReturned 0.002
test304IsNotCached 0.001

GZipFilterTest

testBufferIsFlushedProperlyWhenUsingWriterFurtherDownTheChainOfFilters 0.14

StandaloneGZipFilterTest

testBypassesAsDictatedByVoters 0.001
testBypassesIfClientDoesNotAcceptGZip 0
testDoesNotByPassIfClientAcceptsGZip 0

GZipUtilTest

testGzippedEmptyByteArrayShouldBeExactly20BytesLong 0.006
testGzipped1ByteArrayShouldNotBe20BytesLong 0.001
testGzipIsSymetric 0.001
testGzipActuallyCompressesAtSomePoint 0