Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
67 0 0 1 98.507% 10.723

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.resources.setup 28 0 0 0 100% 8.404
info.magnolia.module.resources 23 0 0 1 95.652% 0.684
info.magnolia.module.resources.renderers 11 0 0 0 100% 1.536
info.magnolia.module.resources.mapping 2 0 0 0 100% 0.072
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.027

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

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.028
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.009
InstallResourceTaskTest 4 0 0 0 100% 0.019
InstallTextResourcesTaskTest 3 0 0 0 100% 0.003
InstallTextResourceTaskTest 6 0 0 0 100% 0.012
ResourcesModuleVersionHandlerTest 7 0 0 0 100% 8.333

info.magnolia.module.resources

Class Tests Errors Failures Skipped Success Rate Time
ResourceLinkerTest 8 0 0 0 100% 0.269
ResourcesServletTest 10 0 0 1 90% 0.413
ResourceTypesTest 5 0 0 0 100% 0.002

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesBinaryRendererTest 3 0 0 0 100% 0.384
ResourcesTextTemplateRendererTest 8 0 0 0 100% 1.152

info.magnolia.module.resources.mapping

Class Tests Errors Failures Skipped Success Rate Time
URI2ResourcesRepositoryMappingTest 2 0 0 0 100% 0.072

info.magnolia.module.resources.loaders

Class Tests Errors Failures Skipped Success Rate Time
FileSystemResourceLoaderTest 3 0 0 0 100% 0.027

Test Cases

[Summary] [Package List] [Test Cases]

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.022
testGetStreamRelativePath 0.005
testGetStream 0

URI2ResourcesRepositoryMappingTest

testGetHandleWhenExtensionIsPartOfNodeName 0.071
testGetHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesBinaryRendererTest

testResourceLoadedFromClassPath 0.303
testResourceLoadedFromContentNode 0.014
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.067

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.664
testRenderJavascriptDecoded 0.073
testOnRenderNoProcessed 0.064
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.058
testOnRenderProcessedByPass 0.156
testRenderCssDecoded 0.044
testOnRenderNoProcessedByPass 0.041
testOnRenderProcessed 0.052

ResourceLinkerTest

ignoresNonExistingResource 0.257
ignoresExternalLinks 0.001
farFutureFingerPrintIsAddedForKnownResources 0.004
servletMappingIsCleanedUp 0.004
prependsDotResourcesPrefixForExistingResourceIfNotSpecified 0.001
farFutureFingerPrintCantBeAddedForUnknownResources 0
downloadPathPrefixIsCleanedUp 0.001
ignoresDotResourcesPrefixForExistingResource 0.001

ResourcesServletTest

serveResourceWithCacheInfix 0.058
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.047
cachingOfResourcesIsDisabledInDevMode 0.05
resourceNotFoundIsNotProcessed2 0.046
newResourceIsServedWithLastModifiedHeaders 0.049
restrictedResourceTypesShouldReturn403 0.047
serveResourceWithSimpleCacheInfix 0.038
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.042
blankResourceReturns400 0.036

ResourceTypesTest

testDetermineTypeCss 0.001
testResourceTypes 0
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0.001

InstallBinaryResourcesTaskTest

testExecuteDontStripExtensions 0.024
testInvalidJcrCharsAreReplaced 0.002
testExecuteStripExtensions 0.002

InstallBinaryResourceTaskTest

testExecute 0.003
testExtensionIsNotStrippedFromResourceFile 0.001
testResourceDoesntExist 0.001
worksWhenResourceNodeIsAlreadyExisting 0.001
testExtensionIsStrippedFromResourceFile 0.003

InstallResourceTaskTest

testResourceTemplatesAreNotRewritten 0.013
testResourceDoesntExist 0.001
testInstallNewResource 0.003
testDifferentPlatformEncoding 0.002

InstallTextResourcesTaskTest

testExtensionIsNotStrippedFromResourceFile 0.001
testDifferentEncoding 0
testExtensionIsStrippedFromResourceFile 0.002

InstallTextResourceTaskTest

testExtensionIsNotStrippedFromResourceFile 0.002
testResourceTemplatesAreNotRewritten 0.002
testResourceDoesntExist 0.001
testInstallNewResource 0.001
testDifferentEncoding 0.002
testExtensionIsStrippedFromResourceFile 0.004

ResourcesModuleVersionHandlerTest

testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 2.774
testUpgradeFrom15 1.655
testUpgradeTo201RemovesVersionCommand 1.187
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.75
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.574
testUpgradeTo201BootstrapsCommands 0.837
upgradeTo24InstallsMappingForNewResourceServlet 0.556

Failure Details

[Summary] [Package List] [Test Cases]


unmodifiedResourceReturns304
skipped: Until MGNLRES-139 is solved