Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 0.963
info.magnolia.module.resources.setup 60 0 0 0 100% 9.237
info.magnolia.module.resources.renderers 14 0 0 0 100% 0.418
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.001
info.magnolia.module.resources 34 0 0 2 94.118% 2.993

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% 0.945
URI2ResourcesRepositoryMappingTest 2 0 0 0 100% 0.018

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
ResourceCleanUpTaskTest 12 0 0 0 100% 1.696
InstallTextResourceTaskTest 6 0 0 0 100% 0.017
TemplateMigrationTaskTest 13 0 0 0 100% 0.049
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0.008
ResourcesModuleVersionHandlerTest 16 0 0 0 100% 6.922
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.012
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.051
InstallTextResourcesTaskTest 4 0 0 0 100% 0.482

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.343
ResourcesBinaryRendererTest 6 0 0 0 100% 0.075

info.magnolia.module.resources.loaders

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

info.magnolia.module.resources

Class Tests Errors Failures Skipped Success Rate Time
ResourceLinkerTest 10 0 0 1 90% 0.009
ResourcesModuleResourceFilterTest 3 0 0 0 100% 2.221
DelegateResourceVoterTest 5 0 0 0 100% 0.697
ResourcesServletTest 11 0 0 1 90.909% 0.066
ResourceTypesTest 5 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.158
cleansUpBinaryPropertiesAnyway 0.17
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.158
cleanUpMagnoliaPropertiesAnyway 0.136
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.121
doNothingIfConstructedWithEmptyPaths 0.148
bypassIfExtensionAlreadyInNodeName 0.131
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.161
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.161
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.114
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.124
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.114

ResourceLinkerTest

ignoresNonExistingResource 0.005
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
servletMappingIsCleanedUp 0.002
prependsDotResourcesPrefixForExistingResourceIfNotSpecified 0
farFutureFingerPrintCantBeAddedForUnknownResources 0.001
downloadPathPrefixIsCleanedUp 0
ignoresDotResourcesPrefixForExistingResource 0

InstallTextResourceTaskTest

differentEncoding 0.001
extensionIsNotStrippedFromResourceFile 0.003
extensionIsStrippedFromResourceFile 0.003
resourceTemplatesAreNotRewritten 0.003
resourceDoesntExist 0.003
installNewResource 0.004

ResourcesModuleResourceFilterTest

doesNotMatchExtensionIsForbidden 1.69
matchesByLocation 0.289
matchesAllowedExtensionsByType 0.242

URI2ResourcesRepositoryMappingRepositoryTest

noResourcesFilterDelegatesToSuper 0.313
doesNotMatchExtensionIsForbidden 0.218
matchesAllowedExtensions 0.21
matchesAllowedDirectories 0.204

TemplateMigrationTaskTest

makeSureAdditionalTaskIsNotExecutedWhenMigrationIsNotPassing 0.029
templateThatIsNotEnabledWillNotBeHandled 0.004
templateWillBeDeletedWhenAutoImportTrueAndResourceExists 0.001
templateIsMigratedWhenAutoImportTrueAndNoResourceExist 0
taskWillFailWhenAutoImportFalseAndResourceExistsWithDifferentContent 0.004
templateIsMigratedWhenAutoImportTrueAndNoResourceExistAndTemplateIsInFolderThatDoesNotExistInDest 0.001
templateIsMigratedWhenAutoImportFalseAndNoResourceExist 0
templateIsMigratedWhenAutoImportFalseAndResourceInOtherOriginExist 0.004
templateWillBeDeletedWhenAutoImportFalseAndResourceExistsWithSameContent 0.001
makeSureAdditionalTaskIsExecutedWhenMigrationPasses 0
taskWillNotFailWhenRepositoryExceptionIsEncounteredWhileGettingSession 0.002
templateIsMigratedAndActivationStatusIsNotCopied 0.002
taskWillNotFailWhenNoTemplatesWorkspaceEncountered 0.001

UpdateResourceReferencesTaskTest

taskRunOkWhenPathsMapIsProvided 0.008

ResourcesModuleVersionHandlerTest

updateFrom262 0.391
upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.565
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.572
testUpgradeFrom15 0.694
testUpgradeTo201RemovesVersionCommand 0.513
updateFrom26 0.285
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.441
cleanInstallAddsByPassNode 0.39
updateFrom153DoesNotReBootstrapNonExistingYAMLTemplate 0.518
updateFrom247RemovesLegacyUriACLs 0.337
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.429
updateFrom247BootstrapsResourceVoter 0.315
testUpgradeTo201BootstrapsCommands 0.487
updateFrom247RemoveLegacyYamlTemplate 0.309
upgradeTo24InstallsMappingForNewResourceServlet 0.351
upgradeTo242ChangesJavascriptContentType 0.325

DelegateResourceVoterTest

allowsEverythingFromWhiteListedLocations 0.133
blankResourcesVoteFalse 0.146
allowsAcceptedExtensions 0.196
noResourceFilterIsConsideredAsWhiteListingEverything 0.114
filtersNotAcceptedExtensions 0.108

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.001
testGetStreamRelativePath 0
testGetStream 0

InstallBinaryResourcesTaskTest

executeDontStripExtensions 0.003
executeStripExtensions 0.005
invalidJcrCharsAreReplaced 0.004

ResourcesServletTest

serveResourceWithCacheInfix 0.02
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.005
cachingOfResourcesIsDisabledInDevMode 0.004
resourceNotFoundIsNotProcessed2 0.005
newResourceIsServedWithLastModifiedHeaders 0.005
restrictedResourceTypesShouldReturn404 0.005
resourceIsServedWithContentTypeHeader 0.005
serveResourceWithSimpleCacheInfix 0.006
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.006
blankResourceReturns400 0.005

URI2ResourcesRepositoryMappingTest

getHandleWhenExtensionIsPartOfNodeName 0.017
getHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.159
testRenderJavascriptDecoded 0.011
testOnRenderNoProcessed 0.011
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.011
testOnRenderProcessedByPass 0.116
testRenderCssDecoded 0.012
testOnRenderNoProcessedByPass 0.011
testOnRenderProcessed 0.012

InstallBinaryResourceTaskTest

execute 0.01
extensionIsNotStrippedFromResourceFile 0.027
extensionIsStrippedFromResourceFile 0.005
worksWhenResourceNodeIsAlreadyExisting 0.005
resourceDoesntExist 0.004

ResourceTypesTest

testDetermineTypeCss 0
testResourceTypes 0
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallTextResourcesTaskTest

differentEncoding 0.114
settingExistingPropertyWithNullValueDoesNotThrowException 0.118
extensionIsNotStrippedFromResourceFile 0.123
extensionIsStrippedFromResourceFile 0.127

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.036
testResourceLoadedFromClassPath 0.008
testResourceLoadedFromContentNode 0.005
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.006
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.007
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.013

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