Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
116 0 0 2 98.276% 14.416

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.782
info.magnolia.module.resources.setup 59 0 0 0 100% 11.095
info.magnolia.module.resources.renderers 14 0 0 0 100% 0.472
info.magnolia.module.resources.loaders 3 0 0 0 100% 0
info.magnolia.module.resources 34 0 0 2 94.118% 2.067

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
URI2ResourcesRepositoryMappingTest 2 0 0 0 100% 0.008
URI2ResourcesRepositoryMappingRepositoryTest 4 0 0 0 100% 0.774

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.017
ResourceCleanUpTaskTest 12 0 0 0 100% 2.392
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0.012
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.022
ResourcesModuleVersionHandlerTest 15 0 0 0 100% 6.609
InstallTextResourceTaskTest 6 0 0 0 100% 0.036
InstallTextResourcesTaskTest 4 0 0 0 100% 1.973
TemplateMigrationTaskTest 13 0 0 0 100% 0.034

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesBinaryRendererTest 6 0 0 0 100% 0.13
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.342

info.magnolia.module.resources.loaders

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

info.magnolia.module.resources

Class Tests Errors Failures Skipped Success Rate Time
ResourceLinkerTest 10 0 0 1 90% 0.011
ResourcesModuleResourceFilterTest 3 0 0 0 100% 0.643
ResourceTypesTest 5 0 0 0 100% 0.001
DelegateResourceVoterTest 5 0 0 0 100% 0.878
ResourcesServletTest 11 0 0 1 90.909% 0.534

Test Cases

[Summary] [Package List] [Test Cases]

InstallBinaryResourcesTaskTest

executeDontStripExtensions 0.003
executeStripExtensions 0.009
invalidJcrCharsAreReplaced 0.005

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.006
testResourceLoadedFromClassPath 0.065
testResourceLoadedFromContentNode 0.005
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.006
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.005
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.043

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.192
cleansUpBinaryPropertiesAnyway 0.184
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.2
cleanUpMagnoliaPropertiesAnyway 0.241
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.228
doNothingIfConstructedWithEmptyPaths 0.212
bypassIfExtensionAlreadyInNodeName 0.183
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.198
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.238
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.157
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.171
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.188

ResourceLinkerTest

ignoresNonExistingResource 0.008
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.001
prependsDotResourcesPrefixForExistingResourceIfNotSpecified 0
farFutureFingerPrintCantBeAddedForUnknownResources 0
downloadPathPrefixIsCleanedUp 0
ignoresDotResourcesPrefixForExistingResource 0

UpdateResourceReferencesTaskTest

taskRunOkWhenPathsMapIsProvided 0.012

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.128
testRenderJavascriptDecoded 0.017
testOnRenderNoProcessed 0.016
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.02
testOnRenderProcessedByPass 0.108
testRenderCssDecoded 0.019
testOnRenderNoProcessedByPass 0.018
testOnRenderProcessed 0.016

ResourcesModuleResourceFilterTest

doesNotMatchExtensionIsForbidden 0.279
matchesByLocation 0.18
matchesAllowedExtensionsByType 0.184

URI2ResourcesRepositoryMappingTest

getHandleWhenExtensionIsPartOfNodeName 0.008
getHandleWhenExtensionIsSavedInPropertyOfNode 0

InstallBinaryResourceTaskTest

execute 0.006
extensionIsNotStrippedFromResourceFile 0.004
extensionIsStrippedFromResourceFile 0.005
worksWhenResourceNodeIsAlreadyExisting 0.004
resourceDoesntExist 0.003

ResourceTypesTest

testDetermineTypeCss 0
testResourceTypes 0.001
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

ResourcesModuleVersionHandlerTest

upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.634
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.621
testUpgradeFrom15 0.565
testUpgradeTo201RemovesVersionCommand 0.536
updateFrom26 0.283
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.38
cleanInstallAddsByPassNode 0.447
updateFrom153DoesNotReBootstrapNonExistingYAMLTemplate 0.558
updateFrom247RemovesLegacyUriACLs 0.278
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.382
updateFrom247BootstrapsResourceVoter 0.334
testUpgradeTo201BootstrapsCommands 0.442
updateFrom247RemoveLegacyYamlTemplate 0.37
upgradeTo24InstallsMappingForNewResourceServlet 0.421
upgradeTo242ChangesJavascriptContentType 0.358

InstallTextResourceTaskTest

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

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0
testGetStreamRelativePath 0
testGetStream 0

DelegateResourceVoterTest

allowsEverythingFromWhiteListedLocations 0.186
blankResourcesVoteFalse 0.157
allowsAcceptedExtensions 0.158
noResourceFilterIsConsideredAsWhiteListingEverything 0.184
filtersNotAcceptedExtensions 0.193

InstallTextResourcesTaskTest

differentEncoding 0.941
settingExistingPropertyWithNullValueDoesNotThrowException 0.39
extensionIsNotStrippedFromResourceFile 0.346
extensionIsStrippedFromResourceFile 0.296

ResourcesServletTest

serveResourceWithCacheInfix 0.35
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.031
cachingOfResourcesIsDisabledInDevMode 0.027
resourceNotFoundIsNotProcessed2 0.029
newResourceIsServedWithLastModifiedHeaders 0.025
restrictedResourceTypesShouldReturn404 0.021
resourceIsServedWithContentTypeHeader 0.014
serveResourceWithSimpleCacheInfix 0.014
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.012
blankResourceReturns400 0.011

URI2ResourcesRepositoryMappingRepositoryTest

noResourcesFilterDelegatesToSuper 0.18
doesNotMatchExtensionIsForbidden 0.192
matchesAllowedExtensions 0.216
matchesAllowedDirectories 0.186

TemplateMigrationTaskTest

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

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