Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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 57 0 0 0 100% 9.531
info.magnolia.module.resources 25 0 0 2 92% 0.388
info.magnolia.module.resources.renderers 14 0 0 0 100% 0.931
info.magnolia.module.resources.mapping 2 0 0 0 100% 0.045
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.012

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.016
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.002
InstallResourceTaskTest 4 0 0 0 100% 0.006
InstallTextResourcesTaskTest 4 0 0 0 100% 3.204
InstallTextResourceTaskTest 6 0 0 0 100% 0.003
ResourceCleanUpTaskTest 12 0 0 0 100% 3.147
ResourcesModuleVersionHandlerTest 9 0 0 0 100% 3.129
TemplateMigrationTaskTest 13 0 0 0 100% 0.024
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0

info.magnolia.module.resources

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

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesBinaryRendererTest 6 0 0 0 100% 0.254
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.677

info.magnolia.module.resources.mapping

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

info.magnolia.module.resources.loaders

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

Test Cases

[Summary] [Package List] [Test Cases]

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.009
testGetStreamRelativePath 0.003
testGetStream 0

URI2ResourcesRepositoryMappingTest

testGetHandleWhenExtensionIsPartOfNodeName 0.044
testGetHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.086
testResourceLoadedFromClassPath 0.094
testResourceLoadedFromContentNode 0.008
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.008
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.008
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.05

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.339
testRenderJavascriptDecoded 0.039
testOnRenderNoProcessed 0.051
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.043
testOnRenderProcessedByPass 0.101
testRenderCssDecoded 0.032
testOnRenderNoProcessedByPass 0.037
testOnRenderProcessed 0.035

ResourceLinkerTest

ignoresNonExistingResource 0.08
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.001
ignoresDotResourcesPrefixForExistingResource 0

ResourcesServletTest

serveResourceWithCacheInfix 0.04
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.034
cachingOfResourcesIsDisabledInDevMode 0.027
resourceNotFoundIsNotProcessed2 0.026
newResourceIsServedWithLastModifiedHeaders 0.027
restrictedResourceTypesShouldReturn403 0.033
resourceIsServedWithContentTypeHeader 0.031
serveResourceWithSimpleCacheInfix 0.034
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.025
blankResourceReturns400 0.022

ResourceTypesTest

testDetermineTypeCss 0
testResourceTypes 0.001
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallBinaryResourcesTaskTest

testExecuteDontStripExtensions 0.013
testInvalidJcrCharsAreReplaced 0.001
testExecuteStripExtensions 0.002

InstallBinaryResourceTaskTest

testExecute 0
testExtensionIsNotStrippedFromResourceFile 0.001
testResourceDoesntExist 0.001
worksWhenResourceNodeIsAlreadyExisting 0
testExtensionIsStrippedFromResourceFile 0

InstallResourceTaskTest

testResourceTemplatesAreNotRewritten 0.004
testResourceDoesntExist 0
testInstallNewResource 0.001
testDifferentPlatformEncoding 0.001

InstallTextResourcesTaskTest

differentEncoding 1.686
settingExistingPropertyWithNullValueDoesNotThrowException 0.674
extensionIsNotStrippedFromResourceFile 0.476
extensionIsStrippedFromResourceFile 0.368

InstallTextResourceTaskTest

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

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.3
cleansUpBinaryPropertiesAnyway 0.266
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.297
cleanUpMagnoliaPropertiesAnyway 0.264
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.323
doNothingIfConstructedWithEmptyPaths 0.255
bypassIfExtensionAlreadyInNodeName 0.252
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.213
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.226
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.281
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.256
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.214

ResourcesModuleVersionHandlerTest

upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.528
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.341
testUpgradeFrom15 0.448
testUpgradeTo201RemovesVersionCommand 0.328
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.32
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.299
testUpgradeTo201BootstrapsCommands 0.288
upgradeTo24InstallsMappingForNewResourceServlet 0.281
upgradeTo242ChangesJavascriptContentType 0.296

TemplateMigrationTaskTest

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

UpdateResourceReferencesTaskTest

taskRunOkWhenPathsMapIsProvided 0

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