Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
119 0 0 2 98.319% 27.948

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.237
info.magnolia.module.resources.renderers 14 0 0 0 100% 1.058
info.magnolia.module.resources.setup 62 0 0 0 100% 17.218
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.02
info.magnolia.module.resources 34 0 0 2 94.118% 7.415

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.196
URI2ResourcesRepositoryMappingTest 2 0 0 0 100% 0.041

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesBinaryRendererTest 6 0 0 0 100% 0.332
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.726

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.017
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.006
InstallResourceTaskTest 4 0 0 0 100% 0.015
InstallTextResourcesTaskTest 4 0 0 0 100% 1.373
InstallTextResourceTaskTest 6 0 0 0 100% 0.012
ResourceCleanUpTaskTest 12 0 0 0 100% 3.694
ResourcesModuleVersionHandlerTest 14 0 0 0 100% 12.051
TemplateMigrationTaskTest 13 0 0 0 100% 0.047
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0.003

info.magnolia.module.resources.loaders

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

info.magnolia.module.resources

Class Tests Errors Failures Skipped Success Rate Time
DelegateResourceVoterTest 5 0 0 0 100% 5.8
ResourceLinkerTest 10 0 0 1 90% 0.077
ResourcesModuleResourceFilterTest 3 0 0 0 100% 1.187
ResourcesServletTest 11 0 0 1 90.909% 0.348
ResourceTypesTest 5 0 0 0 100% 0.003

Test Cases

[Summary] [Package List] [Test Cases]

DelegateResourceVoterTest

allowsEverythingFromWhiteListedLocations 3.16
blankResourcesVoteFalse 0.809
allowsAcceptedExtensions 0.684
noResourceFilterIsConsideredAsWhiteListingEverything 0.604
filtersNotAcceptedExtensions 0.543

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.016
testGetStreamRelativePath 0.004
testGetStream 0

URI2ResourcesRepositoryMappingRepositoryTest

noResourcesFilterDelegatesToSuper 0.667
doesNotMatchExtensionIsForbidden 0.63
matchesAllowedExtensions 0.481
matchesAllowedDirectories 0.418

URI2ResourcesRepositoryMappingTest

getHandleWhenExtensionIsPartOfNodeName 0.04
getHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.086
testResourceLoadedFromClassPath 0.085
testResourceLoadedFromContentNode 0.023
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.021
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.03
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.087

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.21
testRenderJavascriptDecoded 0.047
testOnRenderNoProcessed 0.054
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.067
testOnRenderProcessedByPass 0.227
testRenderCssDecoded 0.031
testOnRenderNoProcessedByPass 0.059
testOnRenderProcessed 0.031

ResourceLinkerTest

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

ResourcesModuleResourceFilterTest

doesNotMatchExtensionIsForbidden 0.431
matchesByLocation 0.401
matchesAllowedExtensionsByType 0.355

ResourcesServletTest

serveResourceWithCacheInfix 0.092
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.034
cachingOfResourcesIsDisabledInDevMode 0.033
resourceNotFoundIsNotProcessed2 0.024
newResourceIsServedWithLastModifiedHeaders 0.026
restrictedResourceTypesShouldReturn404 0.032
resourceIsServedWithContentTypeHeader 0.027
serveResourceWithSimpleCacheInfix 0.023
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.027
blankResourceReturns400 0.03

ResourceTypesTest

testDetermineTypeCss 0.002
testResourceTypes 0
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0.001

InstallBinaryResourcesTaskTest

testExecuteDontStripExtensions 0.014
testInvalidJcrCharsAreReplaced 0.001
testExecuteStripExtensions 0.002

InstallBinaryResourceTaskTest

testExecute 0.001
testExtensionIsNotStrippedFromResourceFile 0.001
testResourceDoesntExist 0.001
worksWhenResourceNodeIsAlreadyExisting 0.002
testExtensionIsStrippedFromResourceFile 0.001

InstallResourceTaskTest

testResourceTemplatesAreNotRewritten 0.011
testResourceDoesntExist 0.001
testInstallNewResource 0.001
testDifferentPlatformEncoding 0.002

InstallTextResourcesTaskTest

differentEncoding 0.284
settingExistingPropertyWithNullValueDoesNotThrowException 0.375
extensionIsNotStrippedFromResourceFile 0.429
extensionIsStrippedFromResourceFile 0.285

InstallTextResourceTaskTest

testExtensionIsNotStrippedFromResourceFile 0.002
testResourceTemplatesAreNotRewritten 0.001
testResourceDoesntExist 0.001
testInstallNewResource 0.001
testDifferentEncoding 0.005
testExtensionIsStrippedFromResourceFile 0.002

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.371
cleansUpBinaryPropertiesAnyway 0.3
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.33
cleanUpMagnoliaPropertiesAnyway 0.243
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.265
doNothingIfConstructedWithEmptyPaths 0.489
bypassIfExtensionAlreadyInNodeName 0.275
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.264
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.33
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.288
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.23
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.309

ResourcesModuleVersionHandlerTest

upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.835
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 0.919
testUpgradeFrom15 1.057
testUpgradeTo201RemovesVersionCommand 0.901
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.853
cleanInstallAddsByPassNode 1.066
updateFrom153DoesNotReBootstrapNonExistingYAMLTemplate 1.171
updateFrom247RemovesLegacyUriACLs 0.891
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 1.102
updateFrom247BootstrapsResourceVoter 0.521
testUpgradeTo201BootstrapsCommands 0.788
updateFrom247RemoveLegacyYamlTemplate 0.679
upgradeTo24InstallsMappingForNewResourceServlet 0.721
upgradeTo242ChangesJavascriptContentType 0.547

TemplateMigrationTaskTest

makeSureAdditionalTaskIsNotExecutedWhenMigrationIsNotPassing 0.02
templateThatIsNotEnabledWillNotBeHandled 0.002
templateWillBeDeletedWhenAutoImportTrueAndResourceExists 0
templateIsMigratedWhenAutoImportTrueAndNoResourceExist 0.001
taskWillFailWhenAutoImportFalseAndResourceExistsWithDifferentContent 0.005
templateIsMigratedWhenAutoImportTrueAndNoResourceExistAndTemplateIsInFolderThatDoesNotExistInDest 0.002
templateIsMigratedWhenAutoImportFalseAndNoResourceExist 0.001
templateIsMigratedWhenAutoImportFalseAndResourceInOtherOriginExist 0.001
templateWillBeDeletedWhenAutoImportFalseAndResourceExistsWithSameContent 0.001
makeSureAdditionalTaskIsExecutedWhenMigrationPasses 0
taskWillNotFailWhenRepositoryExceptionIsEncounteredWhileGettingSession 0.002
templateIsMigratedAndActivationStatusIsNotCopied 0.01
taskWillNotFailWhenNoTemplatesWorkspaceEncountered 0.002

UpdateResourceReferencesTaskTest

taskRunOkWhenPathsMapIsProvided 0.003

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