Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 15.531
info.magnolia.module.resources 25 0 0 2 92% 0.713
info.magnolia.module.resources.renderers 14 0 0 0 100% 1.352
info.magnolia.module.resources.mapping 2 0 0 0 100% 0.072
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.017

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.037
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.009
InstallResourceTaskTest 4 0 0 0 100% 0.015
InstallTextResourcesTaskTest 3 0 0 0 100% 0.004
InstallTextResourceTaskTest 6 0 0 0 100% 0.011
ResourceCleanUpTaskTest 12 0 0 0 100% 10.615
ResourcesModuleVersionHandlerTest 9 0 0 0 100% 4.773
TemplateMigrationTaskTest 13 0 0 0 100% 0.064
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0.003

info.magnolia.module.resources

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

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesBinaryRendererTest 6 0 0 0 100% 0.365
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.987

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

Test Cases

[Summary] [Package List] [Test Cases]

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.012
testGetStreamRelativePath 0.004
testGetStream 0.001

URI2ResourcesRepositoryMappingTest

testGetHandleWhenExtensionIsPartOfNodeName 0.071
testGetHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.115
testResourceLoadedFromClassPath 0.135
testResourceLoadedFromContentNode 0.013
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.011
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.009
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.082

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.502
testRenderJavascriptDecoded 0.078
testOnRenderNoProcessed 0.054
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.053
testOnRenderProcessedByPass 0.128
testRenderCssDecoded 0.047
testOnRenderNoProcessedByPass 0.043
testOnRenderProcessed 0.082

ResourceLinkerTest

ignoresNonExistingResource 0.132
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.005
servletMappingIsCleanedUp 0.003
prependsDotResourcesPrefixForExistingResourceIfNotSpecified 0.001
farFutureFingerPrintCantBeAddedForUnknownResources 0.001
downloadPathPrefixIsCleanedUp 0.002
ignoresDotResourcesPrefixForExistingResource 0.001

ResourcesServletTest

serveResourceWithCacheInfix 0.062
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.051
cachingOfResourcesIsDisabledInDevMode 0.051
resourceNotFoundIsNotProcessed2 0.042
newResourceIsServedWithLastModifiedHeaders 0.042
restrictedResourceTypesShouldReturn403 0.074
resourceIsServedWithContentTypeHeader 0.057
serveResourceWithSimpleCacheInfix 0.075
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.063
blankResourceReturns400 0.048

ResourceTypesTest

testDetermineTypeCss 0.001
testResourceTypes 0
testDetermineTypeHtml 0.001
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallBinaryResourcesTaskTest

testExecuteDontStripExtensions 0.031
testInvalidJcrCharsAreReplaced 0.004
testExecuteStripExtensions 0.002

InstallBinaryResourceTaskTest

testExecute 0.002
testExtensionIsNotStrippedFromResourceFile 0.002
testResourceDoesntExist 0.001
worksWhenResourceNodeIsAlreadyExisting 0.002
testExtensionIsStrippedFromResourceFile 0.002

InstallResourceTaskTest

testResourceTemplatesAreNotRewritten 0.011
testResourceDoesntExist 0
testInstallNewResource 0.002
testDifferentPlatformEncoding 0.002

InstallTextResourcesTaskTest

testExtensionIsNotStrippedFromResourceFile 0.002
testDifferentEncoding 0
testExtensionIsStrippedFromResourceFile 0.002

InstallTextResourceTaskTest

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

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 3.45
cleansUpBinaryPropertiesAnyway 1.9
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 1.163
cleanUpMagnoliaPropertiesAnyway 0.89
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.422
doNothingIfConstructedWithEmptyPaths 0.452
bypassIfExtensionAlreadyInNodeName 0.54
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.349
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.335
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.353
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.361
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.4

ResourcesModuleVersionHandlerTest

upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.721
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.58
testUpgradeFrom15 0.589
testUpgradeTo201RemovesVersionCommand 0.494
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.448
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.464
testUpgradeTo201BootstrapsCommands 0.446
upgradeTo24InstallsMappingForNewResourceServlet 0.413
upgradeTo242ChangesJavascriptContentType 0.618

TemplateMigrationTaskTest

makeSureAdditionalTaskIsNotExecutedWhenMigrationIsNotPassing 0.024
templateThatIsNotEnabledWillNotBeHandled 0.002
templateWillBeDeletedWhenAutoImportTrueAndResourceExists 0.002
templateIsMigratedWhenAutoImportTrueAndNoResourceExist 0.001
taskWillFailWhenAutoImportFalseAndResourceExistsWithDifferentContent 0.014
templateIsMigratedWhenAutoImportTrueAndNoResourceExistAndTemplateIsInFolderThatDoesNotExistInDest 0.002
templateIsMigratedWhenAutoImportFalseAndNoResourceExist 0.002
templateIsMigratedWhenAutoImportFalseAndResourceInOtherOriginExist 0.002
templateWillBeDeletedWhenAutoImportFalseAndResourceExistsWithSameContent 0.002
makeSureAdditionalTaskIsExecutedWhenMigrationPasses 0.002
taskWillNotFailWhenRepositoryExceptionIsEncounteredWhileGettingSession 0.004
templateIsMigratedAndActivationStatusIsNotCopied 0.004
taskWillNotFailWhenNoTemplatesWorkspaceEncountered 0.003

UpdateResourceReferencesTaskTest

taskRunOkWhenPathsMapIsProvided 0.003

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