Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 18.745
info.magnolia.module.resources 25 0 0 2 92% 0.867
info.magnolia.module.resources.renderers 14 0 0 0 100% 1.819
info.magnolia.module.resources.mapping 2 0 0 0 100% 0.083
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.028

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.044
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.012
InstallResourceTaskTest 4 0 0 0 100% 0.034
InstallTextResourcesTaskTest 4 0 0 0 100% 7.059
InstallTextResourceTaskTest 6 0 0 0 100% 0.018
ResourceCleanUpTaskTest 12 0 0 0 100% 5.714
ResourcesModuleVersionHandlerTest 9 0 0 0 100% 5.807
TemplateMigrationTaskTest 13 0 0 0 100% 0.056
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.191
ResourcesServletTest 11 0 0 1 90.909% 0.675
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.577
ResourcesTextTemplateRendererTest 8 0 0 0 100% 1.242

info.magnolia.module.resources.mapping

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

info.magnolia.module.resources.loaders

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

Test Cases

[Summary] [Package List] [Test Cases]

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.023
testGetStreamRelativePath 0.004
testGetStream 0.001

URI2ResourcesRepositoryMappingTest

testGetHandleWhenExtensionIsPartOfNodeName 0.082
testGetHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.183
testResourceLoadedFromClassPath 0.215
testResourceLoadedFromContentNode 0.018
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.021
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.033
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.107

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.608
testRenderJavascriptDecoded 0.086
testOnRenderNoProcessed 0.07
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.076
testOnRenderProcessedByPass 0.182
testRenderCssDecoded 0.061
testOnRenderNoProcessedByPass 0.061
testOnRenderProcessed 0.098

ResourceLinkerTest

ignoresNonExistingResource 0.171
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.009
prependsDotResourcesPrefixForExistingResourceIfNotSpecified 0.002
farFutureFingerPrintCantBeAddedForUnknownResources 0.002
downloadPathPrefixIsCleanedUp 0.001
ignoresDotResourcesPrefixForExistingResource 0.001

ResourcesServletTest

serveResourceWithCacheInfix 0.086
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.067
cachingOfResourcesIsDisabledInDevMode 0.074
resourceNotFoundIsNotProcessed2 0.063
newResourceIsServedWithLastModifiedHeaders 0.067
restrictedResourceTypesShouldReturn403 0.077
resourceIsServedWithContentTypeHeader 0.059
serveResourceWithSimpleCacheInfix 0.068
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.057
blankResourceReturns400 0.057

ResourceTypesTest

testDetermineTypeCss 0
testResourceTypes 0.001
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallBinaryResourcesTaskTest

testExecuteDontStripExtensions 0.035
testInvalidJcrCharsAreReplaced 0.006
testExecuteStripExtensions 0.003

InstallBinaryResourceTaskTest

testExecute 0.003
testExtensionIsNotStrippedFromResourceFile 0.002
testResourceDoesntExist 0.001
worksWhenResourceNodeIsAlreadyExisting 0.004
testExtensionIsStrippedFromResourceFile 0.002

InstallResourceTaskTest

testResourceTemplatesAreNotRewritten 0.022
testResourceDoesntExist 0.004
testInstallNewResource 0.005
testDifferentPlatformEncoding 0.003

InstallTextResourcesTaskTest

differentEncoding 3.458
settingExistingPropertyWithNullValueDoesNotThrowException 1.476
extensionIsNotStrippedFromResourceFile 1.256
extensionIsStrippedFromResourceFile 0.869

InstallTextResourceTaskTest

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

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.708
cleansUpBinaryPropertiesAnyway 0.539
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.544
cleanUpMagnoliaPropertiesAnyway 0.43
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.527
doNothingIfConstructedWithEmptyPaths 0.445
bypassIfExtensionAlreadyInNodeName 0.353
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.444
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.519
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.421
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.433
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.351

ResourcesModuleVersionHandlerTest

upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.778
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.649
testUpgradeFrom15 0.711
testUpgradeTo201RemovesVersionCommand 0.579
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.581
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.582
testUpgradeTo201BootstrapsCommands 0.693
upgradeTo24InstallsMappingForNewResourceServlet 0.59
upgradeTo242ChangesJavascriptContentType 0.644

TemplateMigrationTaskTest

makeSureAdditionalTaskIsNotExecutedWhenMigrationIsNotPassing 0.024
templateThatIsNotEnabledWillNotBeHandled 0.003
templateWillBeDeletedWhenAutoImportTrueAndResourceExists 0.001
templateIsMigratedWhenAutoImportTrueAndNoResourceExist 0.001
taskWillFailWhenAutoImportFalseAndResourceExistsWithDifferentContent 0.009
templateIsMigratedWhenAutoImportTrueAndNoResourceExistAndTemplateIsInFolderThatDoesNotExistInDest 0.002
templateIsMigratedWhenAutoImportFalseAndNoResourceExist 0.002
templateIsMigratedWhenAutoImportFalseAndResourceInOtherOriginExist 0.002
templateWillBeDeletedWhenAutoImportFalseAndResourceExistsWithSameContent 0.001
makeSureAdditionalTaskIsExecutedWhenMigrationPasses 0.001
taskWillNotFailWhenRepositoryExceptionIsEncounteredWhileGettingSession 0.003
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