Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
100 0 0 2 98% 13.298

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 56 0 0 0 100% 11.457
info.magnolia.module.resources 25 0 0 2 92% 0.631
info.magnolia.module.resources.renderers 14 0 0 0 100% 1.134
info.magnolia.module.resources.mapping 2 0 0 0 100% 0.06
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.016

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.024
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.007
InstallResourceTaskTest 4 0 0 0 100% 0.01
InstallTextResourcesTaskTest 3 0 0 0 100% 0.002
InstallTextResourceTaskTest 6 0 0 0 100% 0.011
ResourceCleanUpTaskTest 12 0 0 0 100% 7.056
ResourcesModuleVersionHandlerTest 9 0 0 0 100% 4.289
TemplateMigrationTaskTest 13 0 0 0 100% 0.057
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0.001

info.magnolia.module.resources

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

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesBinaryRendererTest 6 0 0 0 100% 0.337
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.797

info.magnolia.module.resources.mapping

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

info.magnolia.module.resources.loaders

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

Test Cases

[Summary] [Package List] [Test Cases]

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.01
testGetStreamRelativePath 0.005
testGetStream 0.001

URI2ResourcesRepositoryMappingTest

testGetHandleWhenExtensionIsPartOfNodeName 0.059
testGetHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.11
testResourceLoadedFromClassPath 0.115
testResourceLoadedFromContentNode 0.009
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.011
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.011
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.081

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.428
testRenderJavascriptDecoded 0.051
testOnRenderNoProcessed 0.042
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.041
testOnRenderProcessedByPass 0.114
testRenderCssDecoded 0.037
testOnRenderNoProcessedByPass 0.036
testOnRenderProcessed 0.048

ResourceLinkerTest

ignoresNonExistingResource 0.133
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.004
servletMappingIsCleanedUp 0.004
prependsDotResourcesPrefixForExistingResourceIfNotSpecified 0.002
farFutureFingerPrintCantBeAddedForUnknownResources 0.002
downloadPathPrefixIsCleanedUp 0.002
ignoresDotResourcesPrefixForExistingResource 0.001

ResourcesServletTest

serveResourceWithCacheInfix 0.076
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.071
cachingOfResourcesIsDisabledInDevMode 0.062
resourceNotFoundIsNotProcessed2 0.064
newResourceIsServedWithLastModifiedHeaders 0.033
restrictedResourceTypesShouldReturn403 0.041
resourceIsServedWithContentTypeHeader 0.028
serveResourceWithSimpleCacheInfix 0.042
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.03
blankResourceReturns400 0.035

ResourceTypesTest

testDetermineTypeCss 0
testResourceTypes 0
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallBinaryResourcesTaskTest

testExecuteDontStripExtensions 0.02
testInvalidJcrCharsAreReplaced 0.002
testExecuteStripExtensions 0.002

InstallBinaryResourceTaskTest

testExecute 0.001
testExtensionIsNotStrippedFromResourceFile 0
testResourceDoesntExist 0
worksWhenResourceNodeIsAlreadyExisting 0.004
testExtensionIsStrippedFromResourceFile 0.002

InstallResourceTaskTest

testResourceTemplatesAreNotRewritten 0.006
testResourceDoesntExist 0.001
testInstallNewResource 0.001
testDifferentPlatformEncoding 0.002

InstallTextResourcesTaskTest

testExtensionIsNotStrippedFromResourceFile 0.001
testDifferentEncoding 0
testExtensionIsStrippedFromResourceFile 0.001

InstallTextResourceTaskTest

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

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 2.122
cleansUpBinaryPropertiesAnyway 0.923
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.624
cleanUpMagnoliaPropertiesAnyway 0.477
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.385
doNothingIfConstructedWithEmptyPaths 0.391
bypassIfExtensionAlreadyInNodeName 0.415
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.326
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.31
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.312
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.356
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.415

ResourcesModuleVersionHandlerTest

upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.671
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.453
testUpgradeFrom15 0.651
testUpgradeTo201RemovesVersionCommand 0.436
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.451
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.379
testUpgradeTo201BootstrapsCommands 0.407
upgradeTo24InstallsMappingForNewResourceServlet 0.42
upgradeTo242ChangesJavascriptContentType 0.421

TemplateMigrationTaskTest

makeSureAdditionalTaskIsNotExecutedWhenMigrationIsNotPassing 0.016
templateThatIsNotEnabledWillNotBeHandled 0.002
templateWillBeDeletedWhenAutoImportTrueAndResourceExists 0.001
templateIsMigratedWhenAutoImportTrueAndNoResourceExist 0.001
taskWillFailWhenAutoImportFalseAndResourceExistsWithDifferentContent 0.01
templateIsMigratedWhenAutoImportTrueAndNoResourceExistAndTemplateIsInFolderThatDoesNotExistInDest 0.001
templateIsMigratedWhenAutoImportFalseAndNoResourceExist 0.002
templateIsMigratedWhenAutoImportFalseAndResourceInOtherOriginExist 0.005
templateWillBeDeletedWhenAutoImportFalseAndResourceExistsWithSameContent 0.001
makeSureAdditionalTaskIsExecutedWhenMigrationPasses 0.003
taskWillNotFailWhenRepositoryExceptionIsEncounteredWhileGettingSession 0.008
templateIsMigratedAndActivationStatusIsNotCopied 0.004
taskWillNotFailWhenNoTemplatesWorkspaceEncountered 0.003

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