Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
101 0 0 2 98.02% 8.57

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.029
info.magnolia.module.resources.renderers 14 0 0 0 100% 0.795
info.magnolia.module.resources.setup 57 0 0 0 100% 7.513
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.021
info.magnolia.module.resources 25 0 0 2 92% 0.212

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

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesBinaryRendererTest 6 0 0 0 100% 0.25
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.545

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.014
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.005
InstallResourceTaskTest 4 0 0 0 100% 0
InstallTextResourcesTaskTest 4 0 0 0 100% 1.908
InstallTextResourceTaskTest 6 0 0 0 100% 0.006
ResourceCleanUpTaskTest 12 0 0 0 100% 2.667
ResourcesModuleVersionHandlerTest 9 0 0 0 100% 2.884
TemplateMigrationTaskTest 13 0 0 0 100% 0.028
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0.001

info.magnolia.module.resources.loaders

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

info.magnolia.module.resources

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

Test Cases

[Summary] [Package List] [Test Cases]

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.017
testGetStreamRelativePath 0.004
testGetStream 0

URI2ResourcesRepositoryMappingTest

testGetHandleWhenExtensionIsPartOfNodeName 0.028
testGetHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.078
testResourceLoadedFromClassPath 0.116
testResourceLoadedFromContentNode 0.006
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.006
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.007
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.037

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.297
testRenderJavascriptDecoded 0.031
testOnRenderNoProcessed 0.029
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.026
testOnRenderProcessedByPass 0.103
testRenderCssDecoded 0.022
testOnRenderNoProcessedByPass 0.019
testOnRenderProcessed 0.018

ResourceLinkerTest

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

ResourcesServletTest

serveResourceWithCacheInfix 0.022
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.016
cachingOfResourcesIsDisabledInDevMode 0.017
resourceNotFoundIsNotProcessed2 0.016
newResourceIsServedWithLastModifiedHeaders 0.013
restrictedResourceTypesShouldReturn403 0.015
resourceIsServedWithContentTypeHeader 0.015
serveResourceWithSimpleCacheInfix 0.018
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.013
blankResourceReturns400 0.016

ResourceTypesTest

testDetermineTypeCss 0
testResourceTypes 0
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallBinaryResourcesTaskTest

testExecuteDontStripExtensions 0.012
testInvalidJcrCharsAreReplaced 0.001
testExecuteStripExtensions 0.001

InstallBinaryResourceTaskTest

testExecute 0.001
testExtensionIsNotStrippedFromResourceFile 0.001
testResourceDoesntExist 0.001
worksWhenResourceNodeIsAlreadyExisting 0.001
testExtensionIsStrippedFromResourceFile 0.001

InstallResourceTaskTest

testResourceTemplatesAreNotRewritten 0
testResourceDoesntExist 0
testInstallNewResource 0
testDifferentPlatformEncoding 0

InstallTextResourcesTaskTest

differentEncoding 1.063
settingExistingPropertyWithNullValueDoesNotThrowException 0.331
extensionIsNotStrippedFromResourceFile 0.283
extensionIsStrippedFromResourceFile 0.231

InstallTextResourceTaskTest

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

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.324
cleansUpBinaryPropertiesAnyway 0.293
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.225
cleanUpMagnoliaPropertiesAnyway 0.239
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.191
doNothingIfConstructedWithEmptyPaths 0.195
bypassIfExtensionAlreadyInNodeName 0.238
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.175
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.192
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.195
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.228
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.172

ResourcesModuleVersionHandlerTest

upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.445
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.415
testUpgradeFrom15 0.385
testUpgradeTo201RemovesVersionCommand 0.293
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.292
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.27
testUpgradeTo201BootstrapsCommands 0.273
upgradeTo24InstallsMappingForNewResourceServlet 0.256
upgradeTo242ChangesJavascriptContentType 0.255

TemplateMigrationTaskTest

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

UpdateResourceReferencesTaskTest

taskRunOkWhenPathsMapIsProvided 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