Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 2.623
info.magnolia.module.resources.setup 60 0 0 0 100% 24.202
info.magnolia.module.resources.renderers 14 0 0 0 100% 1.287
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.003
info.magnolia.module.resources 34 0 0 2 94.118% 7.034

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% 2.566
URI2ResourcesRepositoryMappingTest 2 0 0 0 100% 0.057

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
ResourceCleanUpTaskTest 12 0 0 0 100% 4.288
InstallTextResourceTaskTest 6 0 0 0 100% 0.078
TemplateMigrationTaskTest 13 0 0 0 100% 0.07
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0.018
ResourcesModuleVersionHandlerTest 16 0 0 0 100% 18.306
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.031
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.091
InstallTextResourcesTaskTest 4 0 0 0 100% 1.32

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.901
ResourcesBinaryRendererTest 6 0 0 0 100% 0.386

info.magnolia.module.resources.loaders

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

info.magnolia.module.resources

Class Tests Errors Failures Skipped Success Rate Time
ResourceLinkerTest 10 0 0 1 90% 0.02
ResourcesModuleResourceFilterTest 3 0 0 0 100% 5.485
DelegateResourceVoterTest 5 0 0 0 100% 1.305
ResourcesServletTest 11 0 0 1 90.909% 0.224
ResourceTypesTest 5 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.522
cleansUpBinaryPropertiesAnyway 0.269
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.255
cleanUpMagnoliaPropertiesAnyway 0.377
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.283
doNothingIfConstructedWithEmptyPaths 0.4
bypassIfExtensionAlreadyInNodeName 0.331
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.383
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.488
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.268
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.281
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.431

ResourceLinkerTest

ignoresNonExistingResource 0.01
ignoresExternalLinks 0.001
fingerPrintDoesNotLeaveTrailingDotForResourcesWithoutExtension 0
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.004
prependsDotResourcesPrefixForExistingResourceIfNotSpecified 0.001
farFutureFingerPrintCantBeAddedForUnknownResources 0.002
downloadPathPrefixIsCleanedUp 0.001
ignoresDotResourcesPrefixForExistingResource 0

InstallTextResourceTaskTest

differentEncoding 0.007
extensionIsNotStrippedFromResourceFile 0.01
extensionIsStrippedFromResourceFile 0.009
resourceTemplatesAreNotRewritten 0.009
resourceDoesntExist 0.008
installNewResource 0.035

ResourcesModuleResourceFilterTest

doesNotMatchExtensionIsForbidden 4.061
matchesByLocation 0.655
matchesAllowedExtensionsByType 0.769

URI2ResourcesRepositoryMappingRepositoryTest

noResourcesFilterDelegatesToSuper 0.848
doesNotMatchExtensionIsForbidden 0.629
matchesAllowedExtensions 0.546
matchesAllowedDirectories 0.543

TemplateMigrationTaskTest

makeSureAdditionalTaskIsNotExecutedWhenMigrationIsNotPassing 0.032
templateThatIsNotEnabledWillNotBeHandled 0.006
templateWillBeDeletedWhenAutoImportTrueAndResourceExists 0.001
templateIsMigratedWhenAutoImportTrueAndNoResourceExist 0.001
taskWillFailWhenAutoImportFalseAndResourceExistsWithDifferentContent 0.01
templateIsMigratedWhenAutoImportTrueAndNoResourceExistAndTemplateIsInFolderThatDoesNotExistInDest 0.001
templateIsMigratedWhenAutoImportFalseAndNoResourceExist 0.001
templateIsMigratedWhenAutoImportFalseAndResourceInOtherOriginExist 0.007
templateWillBeDeletedWhenAutoImportFalseAndResourceExistsWithSameContent 0.001
makeSureAdditionalTaskIsExecutedWhenMigrationPasses 0.001
taskWillNotFailWhenRepositoryExceptionIsEncounteredWhileGettingSession 0.002
templateIsMigratedAndActivationStatusIsNotCopied 0.005
taskWillNotFailWhenNoTemplatesWorkspaceEncountered 0.002

UpdateResourceReferencesTaskTest

taskRunOkWhenPathsMapIsProvided 0.018

ResourcesModuleVersionHandlerTest

updateFrom262 1.164
upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 1.293
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 1.165
testUpgradeFrom15 1.538
testUpgradeTo201RemovesVersionCommand 1.234
updateFrom26 0.536
testUpgradeFrom201WhenCustomExtractCommentCommandClass 1.235
cleanInstallAddsByPassNode 1.63
updateFrom153DoesNotReBootstrapNonExistingYAMLTemplate 1.247
updateFrom247RemovesLegacyUriACLs 0.796
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 1.201
updateFrom247BootstrapsResourceVoter 0.775
testUpgradeTo201BootstrapsCommands 1.479
updateFrom247RemoveLegacyYamlTemplate 0.915
upgradeTo24InstallsMappingForNewResourceServlet 1.124
upgradeTo242ChangesJavascriptContentType 0.974

DelegateResourceVoterTest

allowsEverythingFromWhiteListedLocations 0.372
blankResourcesVoteFalse 0.24
allowsAcceptedExtensions 0.222
noResourceFilterIsConsideredAsWhiteListingEverything 0.226
filtersNotAcceptedExtensions 0.245

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.001
testGetStreamRelativePath 0.001
testGetStream 0.001

InstallBinaryResourcesTaskTest

executeDontStripExtensions 0.009
executeStripExtensions 0.013
invalidJcrCharsAreReplaced 0.009

ResourcesServletTest

serveResourceWithCacheInfix 0.07
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.011
cachingOfResourcesIsDisabledInDevMode 0.012
resourceNotFoundIsNotProcessed2 0.016
newResourceIsServedWithLastModifiedHeaders 0.018
restrictedResourceTypesShouldReturn404 0.024
resourceIsServedWithContentTypeHeader 0.031
serveResourceWithSimpleCacheInfix 0.013
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.013
blankResourceReturns400 0.016

URI2ResourcesRepositoryMappingTest

getHandleWhenExtensionIsPartOfNodeName 0.055
getHandleWhenExtensionIsSavedInPropertyOfNode 0.002

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.41
testRenderJavascriptDecoded 0.023
testOnRenderNoProcessed 0.056
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.021
testOnRenderProcessedByPass 0.312
testRenderCssDecoded 0.019
testOnRenderNoProcessedByPass 0.032
testOnRenderProcessed 0.028

InstallBinaryResourceTaskTest

execute 0.013
extensionIsNotStrippedFromResourceFile 0.009
extensionIsStrippedFromResourceFile 0.036
worksWhenResourceNodeIsAlreadyExisting 0.017
resourceDoesntExist 0.016

ResourceTypesTest

testDetermineTypeCss 0
testResourceTypes 0
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallTextResourcesTaskTest

differentEncoding 0.329
settingExistingPropertyWithNullValueDoesNotThrowException 0.344
extensionIsNotStrippedFromResourceFile 0.312
extensionIsStrippedFromResourceFile 0.335

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.09
testResourceLoadedFromClassPath 0.151
testResourceLoadedFromContentNode 0.009
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.019
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.024
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.093

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