Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
87 0 0 2 97.701% 9.217

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.mapping 2 0 0 0 100% 0.062
info.magnolia.module.resources.renderers 14 0 0 0 100% 1.246
info.magnolia.module.resources.setup 43 0 0 0 100% 7.366
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.019
info.magnolia.module.resources 25 0 0 2 92% 0.524

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

info.magnolia.module.resources.mapping

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

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesBinaryRendererTest 6 0 0 0 100% 0.389
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.857

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.047
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.007
InstallResourceTaskTest 4 0 0 0 100% 0.022
InstallTextResourcesTaskTest 3 0 0 0 100% 0.006
InstallTextResourceTaskTest 6 0 0 0 100% 0.013
ResourcesModuleVersionHandlerTest 9 0 0 0 100% 7.207
TemplateMigrationTaskTest 13 0 0 0 100% 0.064

info.magnolia.module.resources.loaders

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

info.magnolia.module.resources

Class Tests Errors Failures Skipped Success Rate Time
ResourceLinkerTest 9 0 0 1 88.889% 0.12
ResourcesServletTest 11 0 0 1 90.909% 0.402
ResourceTypesTest 5 0 0 0 100% 0.002

Test Cases

[Summary] [Package List] [Test Cases]

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.016
testGetStreamRelativePath 0.003
testGetStream 0

URI2ResourcesRepositoryMappingTest

testGetHandleWhenExtensionIsPartOfNodeName 0.061
testGetHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.109
testResourceLoadedFromClassPath 0.148
testResourceLoadedFromContentNode 0.023
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.009
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.014
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.086

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.41
testRenderJavascriptDecoded 0.047
testOnRenderNoProcessed 0.043
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.047
testOnRenderProcessedByPass 0.179
testRenderCssDecoded 0.052
testOnRenderNoProcessedByPass 0.043
testOnRenderProcessed 0.036

ResourceLinkerTest

ignoresNonExistingResource 0.094
ignoresExternalLinks 0
linkWithoutProtocol 0
We currently do not support links without protocol even though this style of links is common to be used nowadays
farFutureFingerPrintIsAddedForKnownResources 0.007
servletMappingIsCleanedUp 0.003
prependsDotResourcesPrefixForExistingResourceIfNotSpecified 0.001
farFutureFingerPrintCantBeAddedForUnknownResources 0.001
downloadPathPrefixIsCleanedUp 0.001
ignoresDotResourcesPrefixForExistingResource 0.013

ResourcesServletTest

serveResourceWithCacheInfix 0.052
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.046
cachingOfResourcesIsDisabledInDevMode 0.031
resourceNotFoundIsNotProcessed2 0.036
newResourceIsServedWithLastModifiedHeaders 0.028
restrictedResourceTypesShouldReturn403 0.032
resourceIsServedWithContentTypeHeader 0.029
serveResourceWithSimpleCacheInfix 0.038
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.04
blankResourceReturns400 0.07

ResourceTypesTest

testDetermineTypeCss 0.001
testResourceTypes 0
testDetermineTypeHtml 0.001
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallBinaryResourcesTaskTest

testExecuteDontStripExtensions 0.04
testInvalidJcrCharsAreReplaced 0.004
testExecuteStripExtensions 0.003

InstallBinaryResourceTaskTest

testExecute 0.002
testExtensionIsNotStrippedFromResourceFile 0.001
testResourceDoesntExist 0
worksWhenResourceNodeIsAlreadyExisting 0.002
testExtensionIsStrippedFromResourceFile 0.002

InstallResourceTaskTest

testResourceTemplatesAreNotRewritten 0.013
testResourceDoesntExist 0.004
testInstallNewResource 0.002
testDifferentPlatformEncoding 0.003

InstallTextResourcesTaskTest

testExtensionIsNotStrippedFromResourceFile 0.003
testDifferentEncoding 0.001
testExtensionIsStrippedFromResourceFile 0.002

InstallTextResourceTaskTest

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

ResourcesModuleVersionHandlerTest

upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 2.323
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.873
testUpgradeFrom15 0.842
testUpgradeTo201RemovesVersionCommand 0.651
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.549
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.5
testUpgradeTo201BootstrapsCommands 0.498
upgradeTo24InstallsMappingForNewResourceServlet 0.485
upgradeTo242ChangesJavascriptContentType 0.486

TemplateMigrationTaskTest

makeSureAdditionalTaskIsNotExecutedWhenMigrationIsNotPassing 0.027
templateThatIsNotEnabledWillNotBeHandled 0.006
templateWillBeDeletedWhenAutoImportTrueAndResourceExists 0.002
templateIsMigratedWhenAutoImportTrueAndNoResourceExist 0.006
taskWillFailWhenAutoImportFalseAndResourceExistsWithDifferentContent 0.009
templateIsMigratedWhenAutoImportTrueAndNoResourceExistAndTemplateIsInFolderThatDoesNotExistInDest 0.001
templateIsMigratedWhenAutoImportFalseAndNoResourceExist 0.002
templateIsMigratedWhenAutoImportFalseAndResourceInOtherOriginExist 0.006
templateWillBeDeletedWhenAutoImportFalseAndResourceExistsWithSameContent 0.001
makeSureAdditionalTaskIsExecutedWhenMigrationPasses 0
taskWillNotFailWhenRepositoryExceptionIsEncounteredWhileGettingSession 0.001
templateIsMigratedAndActivationStatusIsNotCopied 0.002
taskWillNotFailWhenNoTemplatesWorkspaceEncountered 0.001

Failure Details

[Summary] [Package List] [Test Cases]


linkWithoutProtocol
skipped: We currently do not support links without protocol even though this style of links is common to be used nowadays
unmodifiedResourceReturns304
skipped: Until MGNLRES-139 is solved