Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
117 0 0 2 98.291% 19.405

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 6 0 0 0 100% 1.485
info.magnolia.module.resources.setup 60 0 0 0 100% 12.899
info.magnolia.module.resources.renderers 14 0 0 0 100% 0.631
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.004
info.magnolia.module.resources 34 0 0 2 94.118% 4.386

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
URI2ResourcesRepositoryMappingRepositoryTest 4 0 0 0 100% 1.456
URI2ResourcesRepositoryMappingTest 2 0 0 0 100% 0.029

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
ResourceCleanUpTaskTest 12 0 0 0 100% 2.184
InstallTextResourceTaskTest 6 0 0 0 100% 0.027
TemplateMigrationTaskTest 13 0 0 0 100% 0.066
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0.011
ResourcesModuleVersionHandlerTest 16 0 0 0 100% 9.825
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.017
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.072
InstallTextResourcesTaskTest 4 0 0 0 100% 0.697

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.397
ResourcesBinaryRendererTest 6 0 0 0 100% 0.234

info.magnolia.module.resources.loaders

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

info.magnolia.module.resources

Class Tests Errors Failures Skipped Success Rate Time
ResourceLinkerTest 10 0 0 1 90% 0.019
ResourcesModuleResourceFilterTest 3 0 0 0 100% 3.279
DelegateResourceVoterTest 5 0 0 0 100% 0.989
ResourcesServletTest 11 0 0 1 90.909% 0.099
ResourceTypesTest 5 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.208
cleansUpBinaryPropertiesAnyway 0.211
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.164
cleanUpMagnoliaPropertiesAnyway 0.168
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.149
doNothingIfConstructedWithEmptyPaths 0.254
bypassIfExtensionAlreadyInNodeName 0.198
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.231
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.178
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.132
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.139
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.152

ResourceLinkerTest

ignoresNonExistingResource 0.007
ignoresExternalLinks 0
fingerPrintDoesNotLeaveTrailingDotForResourcesWithoutExtension 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.001
servletMappingIsCleanedUp 0.005
prependsDotResourcesPrefixForExistingResourceIfNotSpecified 0.001
farFutureFingerPrintCantBeAddedForUnknownResources 0.002
downloadPathPrefixIsCleanedUp 0.001
ignoresDotResourcesPrefixForExistingResource 0.001

InstallTextResourceTaskTest

differentEncoding 0.001
extensionIsNotStrippedFromResourceFile 0.006
extensionIsStrippedFromResourceFile 0.005
resourceTemplatesAreNotRewritten 0.005
resourceDoesntExist 0.004
installNewResource 0.006

ResourcesModuleResourceFilterTest

doesNotMatchExtensionIsForbidden 2.246
matchesByLocation 0.535
matchesAllowedExtensionsByType 0.451

URI2ResourcesRepositoryMappingRepositoryTest

noResourcesFilterDelegatesToSuper 0.485
doesNotMatchExtensionIsForbidden 0.383
matchesAllowedExtensions 0.311
matchesAllowedDirectories 0.276

TemplateMigrationTaskTest

makeSureAdditionalTaskIsNotExecutedWhenMigrationIsNotPassing 0.038
templateThatIsNotEnabledWillNotBeHandled 0.006
templateWillBeDeletedWhenAutoImportTrueAndResourceExists 0.001
templateIsMigratedWhenAutoImportTrueAndNoResourceExist 0.001
taskWillFailWhenAutoImportFalseAndResourceExistsWithDifferentContent 0.004
templateIsMigratedWhenAutoImportTrueAndNoResourceExistAndTemplateIsInFolderThatDoesNotExistInDest 0.002
templateIsMigratedWhenAutoImportFalseAndNoResourceExist 0.001
templateIsMigratedWhenAutoImportFalseAndResourceInOtherOriginExist 0.005
templateWillBeDeletedWhenAutoImportFalseAndResourceExistsWithSameContent 0.001
makeSureAdditionalTaskIsExecutedWhenMigrationPasses 0.001
taskWillNotFailWhenRepositoryExceptionIsEncounteredWhileGettingSession 0.002
templateIsMigratedAndActivationStatusIsNotCopied 0.003
taskWillNotFailWhenNoTemplatesWorkspaceEncountered 0.001

UpdateResourceReferencesTaskTest

taskRunOkWhenPathsMapIsProvided 0.01

ResourcesModuleVersionHandlerTest

updateFrom262 0.663
upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.749
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.787
testUpgradeFrom15 0.959
testUpgradeTo201RemovesVersionCommand 0.679
updateFrom26 0.484
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.668
cleanInstallAddsByPassNode 0.516
updateFrom153DoesNotReBootstrapNonExistingYAMLTemplate 0.691
updateFrom247RemovesLegacyUriACLs 0.478
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.685
updateFrom247BootstrapsResourceVoter 0.424
testUpgradeTo201BootstrapsCommands 0.594
updateFrom247RemoveLegacyYamlTemplate 0.491
upgradeTo24InstallsMappingForNewResourceServlet 0.516
upgradeTo242ChangesJavascriptContentType 0.438

DelegateResourceVoterTest

allowsEverythingFromWhiteListedLocations 0.235
blankResourcesVoteFalse 0.249
allowsAcceptedExtensions 0.197
noResourceFilterIsConsideredAsWhiteListingEverything 0.147
filtersNotAcceptedExtensions 0.161

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.002
testGetStreamRelativePath 0
testGetStream 0.002

InstallBinaryResourcesTaskTest

executeDontStripExtensions 0.002
executeStripExtensions 0.009
invalidJcrCharsAreReplaced 0.006

ResourcesServletTest

serveResourceWithCacheInfix 0.031
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.006
cachingOfResourcesIsDisabledInDevMode 0.005
resourceNotFoundIsNotProcessed2 0.006
newResourceIsServedWithLastModifiedHeaders 0.015
restrictedResourceTypesShouldReturn404 0.008
resourceIsServedWithContentTypeHeader 0.007
serveResourceWithSimpleCacheInfix 0.006
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.007
blankResourceReturns400 0.006

URI2ResourcesRepositoryMappingTest

getHandleWhenExtensionIsPartOfNodeName 0.027
getHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.187
testRenderJavascriptDecoded 0.018
testOnRenderNoProcessed 0.017
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.018
testOnRenderProcessedByPass 0.111
testRenderCssDecoded 0.013
testOnRenderNoProcessedByPass 0.014
testOnRenderProcessed 0.015

InstallBinaryResourceTaskTest

execute 0.012
extensionIsNotStrippedFromResourceFile 0.039
extensionIsStrippedFromResourceFile 0.009
worksWhenResourceNodeIsAlreadyExisting 0.007
resourceDoesntExist 0.005

ResourceTypesTest

testDetermineTypeCss 0
testResourceTypes 0
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallTextResourcesTaskTest

differentEncoding 0.14
settingExistingPropertyWithNullValueDoesNotThrowException 0.152
extensionIsNotStrippedFromResourceFile 0.21
extensionIsStrippedFromResourceFile 0.195

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.052
testResourceLoadedFromClassPath 0.099
testResourceLoadedFromContentNode 0.007
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.008
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.008
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.057

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