Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.945
info.magnolia.module.resources.setup 60 0 0 0 100% 9.193
info.magnolia.module.resources.renderers 14 0 0 0 100% 0.467
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.002
info.magnolia.module.resources 34 0 0 2 94.118% 2.674

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.924
URI2ResourcesRepositoryMappingTest 2 0 0 0 100% 0.021

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
ResourceCleanUpTaskTest 12 0 0 0 100% 1.58
InstallTextResourceTaskTest 6 0 0 0 100% 0.021
TemplateMigrationTaskTest 13 0 0 0 100% 0.046
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0.009
ResourcesModuleVersionHandlerTest 16 0 0 0 100% 7.009
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.013
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.028
InstallTextResourcesTaskTest 4 0 0 0 100% 0.487

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.324
ResourcesBinaryRendererTest 6 0 0 0 100% 0.143

info.magnolia.module.resources.loaders

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

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% 1.939
DelegateResourceVoterTest 5 0 0 0 100% 0.653
ResourcesServletTest 11 0 0 1 90.909% 0.07
ResourceTypesTest 5 0 0 0 100% 0.001

Test Cases

[Summary] [Package List] [Test Cases]

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.163
cleansUpBinaryPropertiesAnyway 0.141
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.124
cleanUpMagnoliaPropertiesAnyway 0.123
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.119
doNothingIfConstructedWithEmptyPaths 0.178
bypassIfExtensionAlreadyInNodeName 0.115
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.11
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.14
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.116
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.137
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.112

ResourceLinkerTest

ignoresNonExistingResource 0.006
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.002
extensionIsNotStrippedFromResourceFile 0.004
extensionIsStrippedFromResourceFile 0.004
resourceTemplatesAreNotRewritten 0.004
resourceDoesntExist 0.004
installNewResource 0.003

ResourcesModuleResourceFilterTest

doesNotMatchExtensionIsForbidden 1.398
matchesByLocation 0.296
matchesAllowedExtensionsByType 0.237

URI2ResourcesRepositoryMappingRepositoryTest

noResourcesFilterDelegatesToSuper 0.315
doesNotMatchExtensionIsForbidden 0.231
matchesAllowedExtensions 0.189
matchesAllowedDirectories 0.189

TemplateMigrationTaskTest

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

UpdateResourceReferencesTaskTest

taskRunOkWhenPathsMapIsProvided 0.009

ResourcesModuleVersionHandlerTest

updateFrom262 0.461
upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.565
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.572
testUpgradeFrom15 0.659
testUpgradeTo201RemovesVersionCommand 0.522
updateFrom26 0.284
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.477
cleanInstallAddsByPassNode 0.379
updateFrom153DoesNotReBootstrapNonExistingYAMLTemplate 0.531
updateFrom247RemovesLegacyUriACLs 0.327
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.439
updateFrom247BootstrapsResourceVoter 0.306
testUpgradeTo201BootstrapsCommands 0.455
updateFrom247RemoveLegacyYamlTemplate 0.343
upgradeTo24InstallsMappingForNewResourceServlet 0.363
upgradeTo242ChangesJavascriptContentType 0.322

DelegateResourceVoterTest

allowsEverythingFromWhiteListedLocations 0.142
blankResourcesVoteFalse 0.12
allowsAcceptedExtensions 0.111
noResourceFilterIsConsideredAsWhiteListingEverything 0.166
filtersNotAcceptedExtensions 0.111

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.001
testGetStreamRelativePath 0
testGetStream 0

InstallBinaryResourcesTaskTest

executeDontStripExtensions 0.003
executeStripExtensions 0.004
invalidJcrCharsAreReplaced 0.005

ResourcesServletTest

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

URI2ResourcesRepositoryMappingTest

getHandleWhenExtensionIsPartOfNodeName 0.02
getHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.125
testRenderJavascriptDecoded 0.067
testOnRenderNoProcessed 0.009
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.011
testOnRenderProcessedByPass 0.082
testRenderCssDecoded 0.009
testOnRenderNoProcessedByPass 0.01
testOnRenderProcessed 0.009

InstallBinaryResourceTaskTest

execute 0.009
extensionIsNotStrippedFromResourceFile 0.004
extensionIsStrippedFromResourceFile 0.006
worksWhenResourceNodeIsAlreadyExisting 0.004
resourceDoesntExist 0.005

ResourceTypesTest

testDetermineTypeCss 0
testResourceTypes 0
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallTextResourcesTaskTest

differentEncoding 0.115
settingExistingPropertyWithNullValueDoesNotThrowException 0.127
extensionIsNotStrippedFromResourceFile 0.122
extensionIsStrippedFromResourceFile 0.122

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.043
testResourceLoadedFromClassPath 0.046
testResourceLoadedFromContentNode 0.005
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.006
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.006
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.035

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