Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
295 0 0 2 99.322% 10.176

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% 2.053
info.magnolia.templating.freemarker 28 0 0 0 100% 1.822
info.magnolia.templating.renderers 4 0 0 0 100% 0.054
info.magnolia.templating.functions 182 0 0 0 100% 2.024
info.magnolia.templating.module.setup 2 0 0 0 100% 3.733
info.magnolia.templating.inheritance 8 0 0 0 100% 0.49

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.694
AbstractTemplateElementTest 8 0 0 2 75% 0.267
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.242
AreaElementComponentsTest 5 0 0 0 100% 0.073
AreaElementTest 27 0 0 0 100% 0.499
ComponentElementTest 10 0 0 0 100% 0.173
InitElementTest 4 0 0 0 100% 0.055
MarkupHelperTest 3 0 0 0 100% 0
PageElementTest 4 0 0 0 100% 0.05

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
AbstractDirectiveTest 2 0 0 0 100% 0.04
AreaDirectiveTest 14 0 0 0 100% 1.32
ComponentDirectiveTest 4 0 0 0 100% 0.179
InitDirectiveTest 2 0 0 0 100% 0.082
PageDirectiveTest 2 0 0 0 100% 0.088
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.043
RenderableDefinitionModelTest 3 0 0 0 100% 0.07

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.029
PlainTextRendererTest 2 0 0 0 100% 0.025

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.21
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.026
TemplatingFunctionsTest 151 0 0 0 100% 1.788

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.634
testSetAttributesInWebContext 0.014
testGetTargetContent 0.027
testGetActivationStatus 0.019

AbstractTemplateElementTest

testCurrentContent 0.076
testUsesDefaultBundleIfNotSpecified 0.129
testGetsCustomMessageCustomBundleWithPageTemplate 0.017
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.018
testDefaultMessageFromCustomBundleWithPageTemplate 0.012
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.015

AreaElementCanRenderAreaTest

test1 0.026
test2 0.032
test3 0.012
test4 0.009
test5 0.151
test6 0.012

AreaElementComponentsTest

testMaxComponentsNotSet 0.018
testShouldShowAddButtonTypeSingle 0.01
testMaxComponentsNotReached 0.015
testShouldShowAddButtonTypeNoComponent 0.012
testMaxComponentsReached 0.018

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.011
dontCreateAreaNodeWhenNodeIsProtected 0.018
testBeginWithEditable 0.014
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.013
testEndWithAllowedInheritButNullInheritConfig 0.009
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.012
testEndWithConfFromTemplateDefinition 0.01
testBeginCreateNodeArea 0.011
testDontRenderCmsCommentsInPreviewMode 0.008
testBeginSimple 0.011
testUseAreaI18nBaseNameIfPossible 0.012
testDoNotFailOnNPEDuringCanRenderAreaScript 0.077
testSingleAreaWithMoreComponentsShouldNotFail 0.011
testBeginWithInheritence 0.017
testResolveTemplateDefinitionConsidersVariation 0.015
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0.024
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.018
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.018
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.013
testBeginWithCreateAreaNodeAttribute 0.017
testAvailableComponentsForSuperuser 0.016
testRenderCmsCommentsWhenBeeingInEditMode 0.024
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.02
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.033
testBeginGetContentFromParent 0.015
tryToCreateAreaNode 0.016
testAvailableComponentsForEditor 0.036

ComponentElementTest

testRenderBeginAll 0.019
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.013
testRenderBeginWithEditable 0.033
testDontRenderCmsCommentsInPreviewMode 0.024
testRenderWithoutComment 0.015
testResolvePermissionsFromTemplate 0.012
testRenderBeginOnlyContent 0.014
testResolvePermissionsFromTemplateAvailability 0.013
testRenderCmsCommentsWhenBeeingInEditMode 0.014
testPostRender 0.016

InitElementTest

testOutputContainsContent 0.011
testOutputContainsContentAndDialog 0.013
testOutputWithoutContent 0.021
testOutputwithoutDialog 0.01

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.011
testOutputContainsContentAndDialog 0.014
testOutputWithoutContent 0.014
testOutputwithoutDialog 0.011

AbstractDirectiveTest

testInitContentComponent 0.007
testBodyCheck 0.033

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.658
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.036
testShowAddButtonWhenMaxComponentsIsNotReached 0.037
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.041
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.056
testRenderAreaWithActivationStatusModified 0.063
testRenderSimpleBarWithoutAreaNode 0.045
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.046
testRenderSimpleBar 0.044
testDontShowAddButtonWhenMaxComponentsIsReached 0.046
testCreateAreaNodeSetToFalse 0.063
testCreateAreaNodeSetToTrue 0.069
testDontShowBarWhenAreaIsHasNoComponentType 0.054
testRenderNoBar 0.062

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.051
testRenderSimpleBar 0.06
testRenderWithDialog 0.032
testRenderComponentWithActivationStatusPublished 0.036

InitDirectiveTest

testRenderWithContent 0.04
testRenderWithContentAndDialog 0.042

PageDirectiveTest

testRenderWithContent 0.047
testRenderWithContentAndDialog 0.041

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.043

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.04
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.016
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.014

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.024
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.011
wrapContentMapForI18n 0.014
localizedLinksContainLinksToLocales 0.116
checkCurrentLanguage 0.009
localizedLinksMaintainSelectors 0.01
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.009
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.017

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.244
testComponentInheritance 0.041
testPropertyInheritanceWithInheritanceDisabled 0.049
testDisabledPropertyInheritance 0.028
testMultiLevelPropertyInheritance 0.041
testDoesNothingOnTopLevelPage 0.032
testResourcesInheritance 0.025
testPropertyInheritance 0.03

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 2.947
updateFrom55 0.786

NoScriptRendererTest

testRenderListOfComponents 0.018
testRenderSingleComponent 0.011

PlainTextRendererTest

testRenderInPreview 0.015
testRender 0.01

Failure Details

[Summary] [Package List] [Test Cases]


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