Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.setup 59 0 0 0 100% 12.02
info.magnolia.module.resources.renderers 14 0 0 0 100% 0.626
info.magnolia.module.resources 34 0 0 2 94.118% 7.953
info.magnolia.module.resources.mapping 6 0 0 0 100% 1.819
info.magnolia.module.resources.loaders 3 0 0 0 100% 0.007

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

info.magnolia.module.resources.setup

Class Tests Errors Failures Skipped Success Rate Time
InstallBinaryResourcesTaskTest 3 0 0 0 100% 0.021
InstallBinaryResourceTaskTest 5 0 0 0 100% 0.005
InstallResourceTaskTest 4 0 0 0 100% 0.01
InstallTextResourcesTaskTest 4 0 0 0 100% 1.331
InstallTextResourceTaskTest 6 0 0 0 100% 0.006
ResourceCleanUpTaskTest 12 0 0 0 100% 3.542
ResourcesModuleVersionHandlerTest 11 0 0 0 100% 7.075
TemplateMigrationTaskTest 13 0 0 0 100% 0.03
UpdateResourceReferencesTaskTest 1 0 0 0 100% 0

info.magnolia.module.resources.renderers

Class Tests Errors Failures Skipped Success Rate Time
ResourcesBinaryRendererTest 6 0 0 0 100% 0.213
ResourcesTextTemplateRendererTest 8 0 0 0 100% 0.413

info.magnolia.module.resources

Class Tests Errors Failures Skipped Success Rate Time
DelegateResourceVoterTest 5 0 0 0 100% 6.136
ResourceLinkerTest 10 0 0 1 90% 0.05
ResourcesModuleResourceFilterTest 3 0 0 0 100% 1.275
ResourcesServletTest 11 0 0 1 90.909% 0.491
ResourceTypesTest 5 0 0 0 100% 0.001

info.magnolia.module.resources.mapping

Class Tests Errors Failures Skipped Success Rate Time
URI2ResourcesRepositoryMappingRepositoryTest 4 0 0 0 100% 1.785
URI2ResourcesRepositoryMappingTest 2 0 0 0 100% 0.034

info.magnolia.module.resources.loaders

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

Test Cases

[Summary] [Package List] [Test Cases]

DelegateResourceVoterTest

allowsEverythingFromWhiteListedLocations 3.293
blankResourcesVoteFalse 1.193
allowsAcceptedExtensions 0.642
noResourceFilterIsConsideredAsWhiteListingEverything 0.551
filtersNotAcceptedExtensions 0.457

FileSystemResourceLoaderTest

testTraversingOutsideOfPathNotPossible 0.005
testGetStreamRelativePath 0.002
testGetStream 0

URI2ResourcesRepositoryMappingRepositoryTest

noResourcesFilterDelegatesToSuper 0.433
doesNotMatchExtensionIsForbidden 0.392
matchesAllowedExtensions 0.455
matchesAllowedDirectories 0.505

URI2ResourcesRepositoryMappingTest

getHandleWhenExtensionIsPartOfNodeName 0.033
getHandleWhenExtensionIsSavedInPropertyOfNode 0.001

ResourcesBinaryRendererTest

testIfResourceLoaderReturnsContentType 0.043
testResourceLoadedFromClassPath 0.106
testResourceLoadedFromContentNode 0.006
testIfResourceWithoutExtensionLoadedFromClassPathReturnsNullContentType 0.008
testIfResourceWithExtensionLoadedFromClassPathReturnsNullContentType 0.008
testIfResourceLoaderThrowsIOExceptionThenUseNextResourceLoader 0.042

ResourcesTextTemplateRendererTest

testResourcesAreLoadedFromArbitraryPath 0.124
testRenderJavascriptDecoded 0.028
testOnRenderNoProcessed 0.027
testWhenResourceLoaderThrowsIOExceptionThatNextResourceLoaderIsUsed 0.029
testOnRenderProcessedByPass 0.12
testRenderCssDecoded 0.028
testOnRenderNoProcessedByPass 0.03
testOnRenderProcessed 0.027

ResourceLinkerTest

ignoresNonExistingResource 0.043
ignoresExternalLinks 0
fingerPrintDoesNotLeaveTrailingDotForResourcesWithoutExtension 0.002
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.001
farFutureFingerPrintCantBeAddedForUnknownResources 0.001
downloadPathPrefixIsCleanedUp 0.001
ignoresDotResourcesPrefixForExistingResource 0

ResourcesModuleResourceFilterTest

doesNotMatchExtensionIsForbidden 0.403
matchesByLocation 0.348
matchesAllowedExtensionsByType 0.524

ResourcesServletTest

serveResourceWithCacheInfix 0.067
serveResourceWithCacheInfixAndOtherTildesAndDotsInPathName 0.048
cachingOfResourcesIsDisabledInDevMode 0.055
resourceNotFoundIsNotProcessed2 0.059
newResourceIsServedWithLastModifiedHeaders 0.066
restrictedResourceTypesShouldReturn404 0.051
resourceIsServedWithContentTypeHeader 0.049
serveResourceWithSimpleCacheInfix 0.032
unmodifiedResourceReturns304 0
Until MGNLRES-139 is solved
resourceNotFoundIsNotProcessed 0.029
blankResourceReturns400 0.035

ResourceTypesTest

testDetermineTypeCss 0.001
testResourceTypes 0
testDetermineTypeHtml 0
testDetermineTypeHtmlProcessed 0
testDetermineTypeBinary 0

InstallBinaryResourcesTaskTest

testExecuteDontStripExtensions 0.017
testInvalidJcrCharsAreReplaced 0.002
testExecuteStripExtensions 0.002

InstallBinaryResourceTaskTest

testExecute 0.001
testExtensionIsNotStrippedFromResourceFile 0.001
testResourceDoesntExist 0
worksWhenResourceNodeIsAlreadyExisting 0.002
testExtensionIsStrippedFromResourceFile 0.001

InstallResourceTaskTest

testResourceTemplatesAreNotRewritten 0.006
testResourceDoesntExist 0.001
testInstallNewResource 0.001
testDifferentPlatformEncoding 0.002

InstallTextResourcesTaskTest

differentEncoding 0.3
settingExistingPropertyWithNullValueDoesNotThrowException 0.409
extensionIsNotStrippedFromResourceFile 0.364
extensionIsStrippedFromResourceFile 0.258

InstallTextResourceTaskTest

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

ResourceCleanUpTaskTest

renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameContentAndDotInNodeName 0.337
cleansUpBinaryPropertiesAnyway 0.262
renameNodeIfResourceWithExtensionNotFoundAndNoDotInNodeName 0.25
cleanUpMagnoliaPropertiesAnyway 0.316
bypassIfResourceWithExtensionNotFoundAndDotInNodeName 0.259
doNothingIfConstructedWithEmptyPaths 0.346
bypassIfExtensionAlreadyInNodeName 0.266
cleanUpExtensionIfFoundElsewhereWithoutExtensionAtAll 0.224
respectPatternWhenTwoResourcesExistWithSameNameButDifferentExtension 0.349
warnIfResourceWithExtensionExistsInOtherOriginWithDifferentContent 0.367
removeNodeIfResourceWithExtensionExistsInJcrWithSameContent 0.311
renameNodeIfResourceWithExtensionExistsInOtherOriginWithSameBinaryContent 0.255

ResourcesModuleVersionHandlerTest

upgradeFrom241RemoveAppLauncherConfigForInPlaceTemplating 0.677
testUpgradeFrom201WhenExtractCommentCommandClassIsInAdmininterface 1.012
testUpgradeFrom15 0.851
testUpgradeTo201RemovesVersionCommand 0.658
testUpgradeFrom201WhenCustomExtractCommentCommandClass 0.546
cleanInstallAddsByPassNode 0.638
testUpgradeFrom201WhenExtractCommentCommandClassIsInResources 0.648
updateFrom247BootstrapsResourceVoter 0.443
testUpgradeTo201BootstrapsCommands 0.735
upgradeTo24InstallsMappingForNewResourceServlet 0.435
upgradeTo242ChangesJavascriptContentType 0.432

TemplateMigrationTaskTest

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

UpdateResourceReferencesTaskTest

taskRunOkWhenPathsMapIsProvided 0

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