Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
322 0 0 2 99.379% 11.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% 2.77
info.magnolia.templating.freemarker 28 0 0 0 100% 0.953
info.magnolia.templating.renderers 4 0 0 0 100% 0.097
info.magnolia.templating.functions 188 0 0 0 100% 1.782
info.magnolia.templating.inspector 20 0 0 0 100% 0.156
info.magnolia.templating.module.setup 3 0 0 0 100% 5.541
info.magnolia.templating.inheritance 8 0 0 0 100% 0.519

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% 1.178
AbstractTemplateElementTest 8 0 0 2 75% 0.21
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.299
AreaElementComponentsTest 5 0 0 0 100% 0.111
AreaElementTest 27 0 0 0 100% 0.654
ComponentElementTest 10 0 0 0 100% 0.179
InitElementTest 4 0 0 0 100% 0.068
MarkupHelperTest 3 0 0 0 100% 0
PageElementTest 4 0 0 0 100% 0.071

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
AbstractDirectiveTest 2 0 0 0 100% 0.065
AreaDirectiveTest 14 0 0 0 100% 0.668
ComponentDirectiveTest 4 0 0 0 100% 0.078
InitDirectiveTest 2 0 0 0 100% 0.029
PageDirectiveTest 2 0 0 0 100% 0.024
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.013
RenderableDefinitionModelTest 3 0 0 0 100% 0.076

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.046
PlainTextRendererTest 2 0 0 0 100% 0.051

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
SiblingsHelperTest 6 0 0 0 100% 0.081
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.17
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.026
TemplatingFunctionsTest 151 0 0 0 100% 1.505

info.magnolia.templating.inspector

Class Tests Errors Failures Skipped Success Rate Time
InspectorTest 20 0 0 0 100% 0.156

info.magnolia.templating.module.setup

Class Tests Errors Failures Skipped Success Rate Time
TemplatingModuleVersionHandlerTest 3 0 0 0 100% 5.541

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 1.13
testSetAttributesInWebContext 0.016
testGetTargetContent 0.015
testGetActivationStatus 0.017

AbstractTemplateElementTest

testCurrentContent 0.034
testUsesDefaultBundleIfNotSpecified 0.096
testGetsCustomMessageCustomBundleWithPageTemplate 0.019
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.02
testDefaultMessageFromCustomBundleWithPageTemplate 0.021
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.02

AreaElementCanRenderAreaTest

test1 0.027
test2 0.043
test3 0.015
test4 0.016
test5 0.18
test6 0.018

AreaElementComponentsTest

testMaxComponentsNotSet 0.025
testShouldShowAddButtonTypeSingle 0.015
testMaxComponentsNotReached 0.02
testShouldShowAddButtonTypeNoComponent 0.017
testMaxComponentsReached 0.034

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.021
dontCreateAreaNodeWhenNodeIsProtected 0.036
testBeginWithEditable 0.014
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.014
testEndWithAllowedInheritButNullInheritConfig 0.016
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.013
testEndWithConfFromTemplateDefinition 0.013
testBeginCreateNodeArea 0.025
testDontRenderCmsCommentsInPreviewMode 0.016
testBeginSimple 0.018
testUseAreaI18nBaseNameIfPossible 0.021
testDoNotFailOnNPEDuringCanRenderAreaScript 0.116
testSingleAreaWithMoreComponentsShouldNotFail 0.023
testBeginWithInheritence 0.025
testResolveTemplateDefinitionConsidersVariation 0.021
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0.021
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.015
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.021
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.021
testBeginWithCreateAreaNodeAttribute 0.018
testAvailableComponentsForSuperuser 0.02
testRenderCmsCommentsWhenBeeingInEditMode 0.035
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.025
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.02
testBeginGetContentFromParent 0.017
tryToCreateAreaNode 0.024
testAvailableComponentsForEditor 0.025

ComponentElementTest

testRenderBeginAll 0.018
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.016
testRenderBeginWithEditable 0.016
testDontRenderCmsCommentsInPreviewMode 0.017
testRenderWithoutComment 0.025
testResolvePermissionsFromTemplate 0.018
testRenderBeginOnlyContent 0.021
testResolvePermissionsFromTemplateAvailability 0.017
testRenderCmsCommentsWhenBeeingInEditMode 0.016
testPostRender 0.015

InitElementTest

testOutputContainsContent 0.019
testOutputContainsContentAndDialog 0.015
testOutputWithoutContent 0.019
testOutputwithoutDialog 0.015

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.017
testOutputContainsContentAndDialog 0.018
testOutputWithoutContent 0.018
testOutputwithoutDialog 0.018

AbstractDirectiveTest

testInitContentComponent 0.013
testBodyCheck 0.052

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.367
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.027
testShowAddButtonWhenMaxComponentsIsNotReached 0.026
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.025
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.025
testRenderAreaWithActivationStatusModified 0.023
testRenderSimpleBarWithoutAreaNode 0.014
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.02
testRenderSimpleBar 0.021
testDontShowAddButtonWhenMaxComponentsIsReached 0.015
testCreateAreaNodeSetToFalse 0.023
testCreateAreaNodeSetToTrue 0.019
testDontShowBarWhenAreaIsHasNoComponentType 0.039
testRenderNoBar 0.024

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.021
testRenderSimpleBar 0.018
testRenderWithDialog 0.021
testRenderComponentWithActivationStatusPublished 0.018

InitDirectiveTest

testRenderWithContent 0.013
testRenderWithContentAndDialog 0.016

PageDirectiveTest

testRenderWithContent 0.014
testRenderWithContentAndDialog 0.01

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.013

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.051
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.015
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.01

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.03
testCanTellPosition 0.01
testCanTellIfFirstWhenInitializingWithFirst 0.01
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.007
testCanTellIfLastWhenInitializingWith 0.013
testCanTellIfLastAfterNavigating 0.011

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.022
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.01
wrapContentMapForI18n 0.007
localizedLinksContainLinksToLocales 0.093
checkCurrentLanguage 0.007
localizedLinksMaintainSelectors 0.01
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.014
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.007

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.253
testComponentInheritance 0.044
testPropertyInheritanceWithInheritanceDisabled 0.045
testDisabledPropertyInheritance 0.049
testMultiLevelPropertyInheritance 0.038
testDoesNothingOnTopLevelPage 0.034
testResourcesInheritance 0.028
testPropertyInheritance 0.028

InspectorTest

dumpByte 0.056
dumpChar 0.018
dumpDate 0.004
dumpLong 0.002
dumpNode 0.012
dumpNull 0.004
dumpArray 0.005
dumpFloat 0.004
dumpShort 0.002
dumpSingleValueProperty 0.002
dumpCollection 0.005
dumpBoolean 0.003
dumpCalendar 0.004
dumpDouble 0.003
dumpObject 0.004
dumpString 0.003
dumpContentMap 0.009
dumpMultiValueProperty 0.007
dumpInteger 0.004
dumpMap 0.005

TemplatingModuleVersionHandlerTest

updateFrom561 2.764
testInstallFrom4_4_6 1.667
updateFrom55 1.11

NoScriptRendererTest

testRenderListOfComponents 0.025
testRenderSingleComponent 0.021

PlainTextRendererTest

testRenderInPreview 0.038
testRender 0.013

Failure Details

[Summary] [Package List] [Test Cases]


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