Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
294 0 0 2 99.32% 5.818

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.templating.elements 71 0 0 2 97.183% 1.315
info.magnolia.templating.freemarker 28 0 0 0 100% 1.217
info.magnolia.templating.renderers 4 0 0 0 100% 0.027
info.magnolia.templating.functions 181 0 0 0 100% 0.932
info.magnolia.templating.module.setup 2 0 0 0 100% 2.003
info.magnolia.templating.inheritance 8 0 0 0 100% 0.324

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

info.magnolia.templating.elements

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.341
AbstractTemplateElementTest 8 0 0 2 75% 0.167
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.204
AreaElementComponentsTest 5 0 0 0 100% 0.068
AreaElementTest 27 0 0 0 100% 0.342
ComponentElementTest 10 0 0 0 100% 0.113
InitElementTest 4 0 0 0 100% 0.043
MarkupHelperTest 3 0 0 0 100% 0.001
PageElementTest 4 0 0 0 100% 0.036

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
AbstractDirectiveTest 2 0 0 0 100% 0.036
AreaDirectiveTest 14 0 0 0 100% 0.927
ComponentDirectiveTest 4 0 0 0 100% 0.1
InitDirectiveTest 2 0 0 0 100% 0.042
PageDirectiveTest 2 0 0 0 100% 0.039
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.021
RenderableDefinitionModelTest 3 0 0 0 100% 0.052

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.014
PlainTextRendererTest 2 0 0 0 100% 0.013

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.008
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.017
TemplatingFunctionsTest 150 0 0 0 100% 0.907

info.magnolia.templating.module.setup

Class Tests Errors Failures Skipped Success Rate Time
TemplatingModuleVersionHandlerTest 2 0 0 0 100% 2.003

info.magnolia.templating.inheritance

Class Tests Errors Failures Skipped Success Rate Time
DefaultInheritanceContentDecoratorTest 8 0 0 0 100% 0.324

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.312
testSetAttributesInWebContext 0.01
testGetTargetContent 0.01
testGetActivationStatus 0.009

AbstractTemplateElementTest

testCurrentContent 0.032
testUsesDefaultBundleIfNotSpecified 0.087
testGetsCustomMessageCustomBundleWithPageTemplate 0.015
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.012
testDefaultMessageFromCustomBundleWithPageTemplate 0.011
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.01

AreaElementCanRenderAreaTest

test1 0.017
test2 0.025
test3 0.008
test4 0.009
test5 0.13
test6 0.015

AreaElementComponentsTest

testMaxComponentsNotSet 0.019
testShouldShowAddButtonTypeSingle 0.01
testMaxComponentsNotReached 0.011
testShouldShowAddButtonTypeNoComponent 0.01
testMaxComponentsReached 0.018

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.009
dontCreateAreaNodeWhenNodeIsProtected 0.012
testBeginWithEditable 0.009
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.009
testEndWithAllowedInheritButNullInheritConfig 0.009
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.01
testEndWithConfFromTemplateDefinition 0.01
testBeginCreateNodeArea 0.009
testDontRenderCmsCommentsInPreviewMode 0.012
testBeginSimple 0.01
testUseAreaI18nBaseNameIfPossible 0.012
testDoNotFailOnNPEDuringCanRenderAreaScript 0.094
testSingleAreaWithMoreComponentsShouldNotFail 0
testBeginWithInheritence 0
testResolveTemplateDefinitionConsidersVariation 0.006
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0.011
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.01
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.011
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.014
testBeginWithCreateAreaNodeAttribute 0.009
testAvailableComponentsForSuperuser 0.011
testRenderCmsCommentsWhenBeeingInEditMode 0.012
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.01
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.01
testBeginGetContentFromParent 0.008
tryToCreateAreaNode 0.012
testAvailableComponentsForEditor 0.013

ComponentElementTest

testRenderBeginAll 0.012
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.014
testRenderBeginWithEditable 0.012
testDontRenderCmsCommentsInPreviewMode 0.009
testRenderWithoutComment 0.01
testResolvePermissionsFromTemplate 0.01
testRenderBeginOnlyContent 0.009
testResolvePermissionsFromTemplateAvailability 0.011
testRenderCmsCommentsWhenBeeingInEditMode 0.017
testPostRender 0.009

InitElementTest

testOutputContainsContent 0.008
testOutputContainsContentAndDialog 0.014
testOutputWithoutContent 0.011
testOutputwithoutDialog 0.01

MarkupHelperTest

testNullContentAsEmptyString 0.001
testParam 0
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.015
testOutputContainsContentAndDialog 0.008
testOutputWithoutContent 0.008
testOutputwithoutDialog 0.005

AbstractDirectiveTest

testInitContentComponent 0.007
testBodyCheck 0.029

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.521
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.041
testShowAddButtonWhenMaxComponentsIsNotReached 0.036
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.037
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.027
testRenderAreaWithActivationStatusModified 0.028
testRenderSimpleBarWithoutAreaNode 0.031
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.031
testRenderSimpleBar 0.027
testDontShowAddButtonWhenMaxComponentsIsReached 0.027
testCreateAreaNodeSetToFalse 0.028
testCreateAreaNodeSetToTrue 0.049
testDontShowBarWhenAreaIsHasNoComponentType 0.022
testRenderNoBar 0.022

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.023
testRenderSimpleBar 0.026
testRenderWithDialog 0.027
testRenderComponentWithActivationStatusPublished 0.024

InitDirectiveTest

testRenderWithContent 0.02
testRenderWithContentAndDialog 0.022

PageDirectiveTest

testRenderWithContent 0.019
testRenderWithContentAndDialog 0.02

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.021

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.03
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.009
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.013

TemplatingFunctionsI18nTest

wrapNodeForI18n 0
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0
wrapContentMapForI18n 0
localizedLinksContainLinksToLocales 0
checkCurrentLanguage 0
localizedLinksMaintainSelectors 0
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.001
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.007

TemplatingFunctionsMetaDataTest

testDeprecatedActivatorId 0.01
testDeprecatedActivated 0
testDeprecatedLastAction 0.002
testDeprecatedTemplate 0
testLastModified 0.001
testTemplate 0
testDeprecatedTitle 0
testActivationStatus 0
testLastModifiedBy 0
testDeprecatedCreationDate 0
testLastActivated 0
testDeletedBy 0.001
testUnknownPropertyThrowsException 0
testCreated 0
testDeprecatedLastModified 0.001
testLastActivatedBy 0.001
testDeleted 0
nonExistingPropertyDoesNotThrowNPE 0
testVersionableComment 0
testDeprecatedAuthorId 0.001
testCreatedBy 0
testDeletedComment 0
testDeprecatedTemplateType 0

TemplatingFunctionsTest

createHtmlAttributeNoValue 0.018
parentPageFromNodeDepth1 0.01
nodeByNonExistingId 0.01
siteRootCustom 0.013
testConfiguredInheritance 0.009
externalLinkFromContentMapWithProtocol 0.008
isEditModeAuthorAndNotPreview 0.007
getQueryStringAndFragmentSimple 0.007
externalLinkFromNodeNoProtocol 0.007
ancestorPagesFromSubComponentNodeDepth5 0.008
parentFromNodeDepth1 0.007
parentFromNodeDepth2 0.012
getReadableFileSize 0.012
linkForPropertyFromNodeDepth1 0.006
linkForPropertyFromNodeDepth2 0.006
language 0.006
abbreviateStringWithCustomSuffix 0.005
contentByReferenceThrowsRepositoryExceptions 0.005
childrenFromNodeAndTypeComponent 0.013
contentByIdentifier 0.005
createHtmlAttribute 0.005
childrenFromNodeAndTypePage 0.005
isPublicInstanceTrue 0.005
externalLinkFromNodeWithProtocol 0.005
getQueryStringAndFragmentOnlyQuery 0.004
inheritFromNodeOnlyContent 0.008
linkFromContentMapDepth1 0.005
linkFromContentMapDepth2 0.005
rootFromComponentNodeDepth1 0.004
rootFromComponentNodeDepth2 0.004
rootPageFromComponentNodeDepth1 0.005
rootPageFromComponentNodeDepth2 0.005
ancestorsFromNodeDepth1 0.005
pageFromRootShouldBeNull 0.005
parentFromContentMapDepth1 0.004
parentFromContentMapDepth2 0.005
contentByPath 0.004
contentByReference 0.005
abbreviateStringOfNull 0.005
getQueryStringAndFragmentBoth 0.005
linkPrefixWithoutContextPath 0.005
ancestorPagesFromComponentNodeDepth4 0.004
nonExistingInheritedPropertyShouldReturnNull 0.005
linkFromNodeDepth1 0.004
linkFromNodeDepth2 0.005
externalLinkTitleFromNodeNoTitleSet 0.004
externalLinkTitleFromContentMapWithTitle 0.004
isPreviewModeFalse 0.005
pageContentMapFromRootShouldBeNull 0.006
rootPageFromPageContentMapDepth1 0.004
rootPageFromPageContentMapDepth2 0.005
rootPageFromPageContentMapDepth3 0.005
ancestorPagesFromNodeDepth1 0.005
siteRootNotFindingTemplate 0.004
isAuthorInstanceFalse 0.004
asContentMapList 0.006
encodeNode 0.008
encodeText 0.006
siteRootAsContentMap 0.006
isAuthorInstanceTrue 0.011
contentByReferenceReturnsNullWhenPropertyDoesNotExist 0.006
inheritFromContentMapOnlyContentMap 0.008
contentById 0.006
parentFromRootNodeShouldBeNull 0.005
isEditModeNotAuthorAndPreview 0.005
isPreviewModeTrue 0.014
parentPageFromComponentContentMapDepth1 0.009
parentPageFromComponentContentMapDepth2 0.007
parentPageFromComponentContentMapDepth3 0.005
nonExistingInheritedRelPathShouldReturnNull 0.01
abbreviateMultiByteString 0.006
pageHavingNoParentPageShouldBeNull 0.007
ancestorsFromComponentContentMapDepth2 0.007
abbreviateStringNearlyAtTheEnd 0.007
siblings 0.007
contentMapIsFromCurrentPage 0.008
nodeIsInherited 0.01
externalLinkTitleFromNodeWithTitle 0.009
rootFromPageContentMapDepth1 0.009
rootFromPageContentMapDepth2 0.006
rootFromPageContentMapDepth3 0.006
ancestorsFromComponentNodeDepth2 0.006
contentByPathWithQueryString 0.005
getSiblingsFromContentMap 0.007
rootPageFromComponentContentMapDepth1 0.006
rootPageFromComponentContentMapDepth2 0.005
pageFromNodeDepth1 0.007
pageFromNodeDepth2 0.006
parentPageFromPageNode 0.005
ancestorsFromSubComponentNodeDepth5 0.005
childrenFromNode 0.008
nodeByNonExistingPath 0.007
siteRoot 0.007
parentPageFromPageContentMap 0.006
parentComponentFromPageContentMap 0.006
rootFromPageNodeDepth1 0.005
rootFromPageNodeDepth2 0.006
rootFromPageNodeDepth3 0.006
pageContentMapHavingNoParentPageShouldBeNull 0.006
nodeByPath 0.006
ancestorsFromSubComponentConentMapDepth5 0.006
childrenFromContentMapAndTypeComponent 0.006
inheritFromContentMap 0.006
contentMapIsInherited 0.006
ancestorPagesFromContentMapDepth1 0.006
ancestorPagesFromComponentContentMapDepth4 0.007
isEditModeNotAuthorAndNotPreview 0.006
parentPageFromComponentNodeDepth1 0.006
parentPageFromComponentNodeDepth2 0.006
parentPageFromComponentNodeDepth3 0.005
isEditModeAuthorAndPreview 0.006
ancestorsFromContentMapDepth1 0.008
asContentMapFromNode 0.006
inheritFromNode 0.006
nodeById 0.005
nodeByPathWithQueryString 0.006
parentFromRootContentMapShouldBeNull 0.005
pageFromComponentNodeDepth2 0.006
pageFromComponentNodeDepth3 0.006
abbreviateStringWhereStringIsCut 0.012
getQueryStringAndFragmentSimpleOnlyFragment 0.005
childrenFromContentMapAndTypePage 0.005
linkNonExistingUUID 0.005
inheritedNodeIsUnwrapped 0.004
abbreviateStringWhereStringIsNotCut 0.004
asJCRNodeFromContentMap 0.004
linkPrefixWithContextPath 0.004
rootPageFromPageNodeDepth1 0.004
rootPageFromPageNodeDepth2 0.005
rootPageFromPageNodeDepth3 0.004
parentComponentFromPageNode 0.005
parentPageFromContentMapDepth1 0.004
pageFromContentMapDepth1 0.004
pageFromContentMapDepth2 0.005
pageFromComponentContentMapDepth2 0.004
pageFromComponentContentMapDepth3 0.004
externalLinkFromNodeWhereLinkIsAnchorIsEscaped 0.005
encodeContent 0.004
isPublicInstanceFalse 0.004
asNodeList 0.005
nodeIsFromCurrentPage 0.006
getFileExtension 0.005
inheritFromNodeNoContent 0.004
ancestorPagesFromSubComponentConentMapDepth5 0.004
childrenFromContentMap 0.004
externalLinkFromNodeWhereLinkIsAnchor 0.004
externalLinkTitleFromContentMapNoTitleSet 0.004
externalLinkFromContentMapNoProtocol 0.004
rootFromComponentContentMapDepth1 0.004
rootFromComponentContentMapDepth2 0.004

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.183
testComponentInheritance 0.025
testPropertyInheritanceWithInheritanceDisabled 0.023
testDisabledPropertyInheritance 0.022
testMultiLevelPropertyInheritance 0.022
testDoesNothingOnTopLevelPage 0.018
testResourcesInheritance 0.014
testPropertyInheritance 0.017

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 1.588
updateFrom55 0.415

NoScriptRendererTest

testRenderListOfComponents 0.008
testRenderSingleComponent 0.006

PlainTextRendererTest

testRenderInPreview 0.009
testRender 0.004

Failure Details

[Summary] [Package List] [Test Cases]


testUsesDefaultBundleIfNoMetadata
skipped: TODO: check expectation here
testUsesDefaultBundleIfNotRenderableDefinition
skipped: TODO: check expectation here