Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
322 0 0 2 99.379% 23.72

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.935
info.magnolia.templating.freemarker 28 0 0 0 100% 1.192
info.magnolia.templating.renderers 4 0 0 0 100% 0.089
info.magnolia.templating.functions 188 0 0 0 100% 2.361
info.magnolia.templating.inspector 20 0 0 0 100% 0.22
info.magnolia.templating.module.setup 3 0 0 0 100% 17.272
info.magnolia.templating.inheritance 8 0 0 0 100% 0.651

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
AreaElementComponentsTest 5 0 0 0 100% 0.077
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.204
MarkupHelperTest 3 0 0 0 100% 0
AbstractTemplateElementTest 8 0 0 2 75% 0.436
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.383
AreaElementTest 27 0 0 0 100% 0.445
InitElementTest 4 0 0 0 100% 0.087
ComponentElementTest 10 0 0 0 100% 0.233
PageElementTest 4 0 0 0 100% 0.07

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
ComponentDirectiveTest 4 0 0 0 100% 0.191
RenderableDefinitionModelTest 3 0 0 0 100% 0.23
AreaDirectiveTest 14 0 0 0 100% 0.24
AbstractDirectiveTest 2 0 0 0 100% 0.01
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.017
InitDirectiveTest 2 0 0 0 100% 0.1
PageDirectiveTest 2 0 0 0 100% 0.404

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
PlainTextRendererTest 2 0 0 0 100% 0.066
NoScriptRendererTest 2 0 0 0 100% 0.023

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.128
TemplatingFunctionsTest 151 0 0 0 100% 1.89
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.194
SiblingsHelperTest 6 0 0 0 100% 0.149

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AreaElementComponentsTest

testMaxComponentsNotSet 0.02
testShouldShowAddButtonTypeSingle 0.013
testMaxComponentsNotReached 0.014
testShouldShowAddButtonTypeNoComponent 0.012
testMaxComponentsReached 0.018

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.117
testSetAttributesInWebContext 0.04
testGetTargetContent 0.032
testGetActivationStatus 0.015

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.038
testRenderSimpleBar 0.031
testRenderWithDialog 0.038
testRenderComponentWithActivationStatusPublished 0.084

PlainTextRendererTest

testRenderInPreview 0.053
testRender 0.013

TemplatingFunctionsMetaDataTest

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

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.161
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.041
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.028

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.211
testComponentInheritance 0.119
testPropertyInheritanceWithInheritanceDisabled 0.058
testDisabledPropertyInheritance 0.089
testMultiLevelPropertyInheritance 0.056
testDoesNothingOnTopLevelPage 0.03
testResourcesInheritance 0.054
testPropertyInheritance 0.034

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AbstractTemplateElementTest

testCurrentContent 0.271
testUsesDefaultBundleIfNotSpecified 0.073
testGetsCustomMessageCustomBundleWithPageTemplate 0.018
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.02
testDefaultMessageFromCustomBundleWithPageTemplate 0.028
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.026

TemplatingFunctionsTest

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

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.018
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.009
testShowAddButtonWhenMaxComponentsIsNotReached 0.024
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.015
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.021
testRenderAreaWithActivationStatusModified 0.016
testRenderSimpleBarWithoutAreaNode 0.014
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.014
testRenderSimpleBar 0.018
testDontShowAddButtonWhenMaxComponentsIsReached 0.017
testCreateAreaNodeSetToFalse 0.026
testCreateAreaNodeSetToTrue 0.018
testDontShowBarWhenAreaIsHasNoComponentType 0.016
testRenderNoBar 0.014

AbstractDirectiveTest

testInitContentComponent 0.007
testBodyCheck 0.003

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.017

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.013
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.028
wrapContentMapForI18n 0.02
localizedLinksContainLinksToLocales 0.046
checkCurrentLanguage 0.014
localizedLinksMaintainSelectors 0.025
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.025
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.023

InspectorTest

dumpByte 0.048
dumpChar 0.019
dumpDate 0.012
dumpLong 0.004
dumpNode 0.019
dumpNull 0.007
dumpArray 0.009
dumpFloat 0.004
dumpShort 0.003
dumpSingleValueProperty 0.005
dumpCollection 0.014
dumpBoolean 0.004
dumpCalendar 0.012
dumpDouble 0.004
dumpObject 0.005
dumpString 0.009
dumpContentMap 0.026
dumpMultiValueProperty 0.005
dumpInteger 0.003
dumpMap 0.008

AreaElementCanRenderAreaTest

test1 0.055
test2 0.146
test3 0.008
test4 0.009
test5 0.153
test6 0.012

InitDirectiveTest

testRenderWithContent 0.036
testRenderWithContentAndDialog 0.064

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.015
dontCreateAreaNodeWhenNodeIsProtected 0.032
testBeginWithEditable 0.016
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.011
testEndWithAllowedInheritButNullInheritConfig 0.011
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.01
testEndWithConfFromTemplateDefinition 0.011
testBeginCreateNodeArea 0.013
testDontRenderCmsCommentsInPreviewMode 0.013
testBeginSimple 0.012
testUseAreaI18nBaseNameIfPossible 0.013
testDoNotFailOnNPEDuringCanRenderAreaScript 0.08
testSingleAreaWithMoreComponentsShouldNotFail 0.016
testBeginWithInheritence 0.014
testResolveTemplateDefinitionConsidersVariation 0.02
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0.022
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.012
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.013
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.013
testBeginWithCreateAreaNodeAttribute 0.013
testAvailableComponentsForSuperuser 0.016
testRenderCmsCommentsWhenBeeingInEditMode 0.01
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.013
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.012
testBeginGetContentFromParent 0.013
tryToCreateAreaNode 0.013
testAvailableComponentsForEditor 0.008

InitElementTest

testOutputContainsContent 0.022
testOutputContainsContentAndDialog 0.031
testOutputWithoutContent 0.015
testOutputwithoutDialog 0.019

NoScriptRendererTest

testRenderListOfComponents 0.016
testRenderSingleComponent 0.007

ComponentElementTest

testRenderBeginAll 0.011
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.014
testRenderBeginWithEditable 0.011
testDontRenderCmsCommentsInPreviewMode 0.019
testRenderWithoutComment 0.017
testResolvePermissionsFromTemplate 0.019
testRenderBeginOnlyContent 0.044
testResolvePermissionsFromTemplateAvailability 0.047
testRenderCmsCommentsWhenBeeingInEditMode 0.018
testPostRender 0.033

PageDirectiveTest

testRenderWithContent 0.39
testRenderWithContentAndDialog 0.014

PageElementTest

testOutputContainsContent 0.021
testOutputContainsContentAndDialog 0.018
testOutputWithoutContent 0.019
testOutputwithoutDialog 0.012

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.046
testCanTellPosition 0.022
testCanTellIfFirstWhenInitializingWithFirst 0.033
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.022
testCanTellIfLastWhenInitializingWith 0.015
testCanTellIfLastAfterNavigating 0.011

TemplatingModuleVersionHandlerTest

updateFrom561 10.136
testInstallFrom4_4_6 5.1
updateFrom55 2.036

Failure Details

[Summary] [Package List] [Test Cases]


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