Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.142
info.magnolia.templating.freemarker 28 0 0 0 100% 0.65
info.magnolia.templating.renderers 4 0 0 0 100% 0.073
info.magnolia.templating.functions 188 0 0 0 100% 1.326
info.magnolia.templating.inspector 20 0 0 0 100% 0.125
info.magnolia.templating.module.setup 3 0 0 0 100% 6.231
info.magnolia.templating.inheritance 8 0 0 0 100% 0.287

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.083
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.06
MarkupHelperTest 3 0 0 0 100% 0
AbstractTemplateElementTest 8 0 0 2 75% 0.17
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.271
AreaElementTest 27 0 0 0 100% 0.333
InitElementTest 4 0 0 0 100% 0.047
ComponentElementTest 10 0 0 0 100% 0.119
PageElementTest 4 0 0 0 100% 0.059

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
ComponentDirectiveTest 4 0 0 0 100% 0.055
RenderableDefinitionModelTest 3 0 0 0 100% 0.073
AreaDirectiveTest 14 0 0 0 100% 0.228
AbstractDirectiveTest 2 0 0 0 100% 0.009
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.013
InitDirectiveTest 2 0 0 0 100% 0.028
PageDirectiveTest 2 0 0 0 100% 0.244

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
PlainTextRendererTest 2 0 0 0 100% 0.047
NoScriptRendererTest 2 0 0 0 100% 0.026

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.025
TemplatingFunctionsTest 151 0 0 0 100% 1.171
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.069
SiblingsHelperTest 6 0 0 0 100% 0.061

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AreaElementComponentsTest

testMaxComponentsNotSet 0.026
testShouldShowAddButtonTypeSingle 0.013
testMaxComponentsNotReached 0.014
testShouldShowAddButtonTypeNoComponent 0.012
testMaxComponentsReached 0.018

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.02
testSetAttributesInWebContext 0.013
testGetTargetContent 0.014
testGetActivationStatus 0.013

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.014
testRenderSimpleBar 0.014
testRenderWithDialog 0.013
testRenderComponentWithActivationStatusPublished 0.014

PlainTextRendererTest

testRenderInPreview 0.036
testRender 0.011

TemplatingFunctionsMetaDataTest

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

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.051
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.011
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.011

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.057
testComponentInheritance 0.047
testPropertyInheritanceWithInheritanceDisabled 0.034
testDisabledPropertyInheritance 0.033
testMultiLevelPropertyInheritance 0.03
testDoesNothingOnTopLevelPage 0.029
testResourcesInheritance 0.029
testPropertyInheritance 0.028

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AbstractTemplateElementTest

testCurrentContent 0.083
testUsesDefaultBundleIfNotSpecified 0.027
testGetsCustomMessageCustomBundleWithPageTemplate 0.013
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.013
testDefaultMessageFromCustomBundleWithPageTemplate 0.017
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.017

TemplatingFunctionsTest

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

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.014
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.016
testShowAddButtonWhenMaxComponentsIsNotReached 0.017
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.016
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.015
testRenderAreaWithActivationStatusModified 0.014
testRenderSimpleBarWithoutAreaNode 0.011
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.01
testRenderSimpleBar 0.032
testDontShowAddButtonWhenMaxComponentsIsReached 0.025
testCreateAreaNodeSetToFalse 0.021
testCreateAreaNodeSetToTrue 0.012
testDontShowBarWhenAreaIsHasNoComponentType 0.013
testRenderNoBar 0.012

AbstractDirectiveTest

testInitContentComponent 0.007
testBodyCheck 0.002

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.013

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.002
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.01
wrapContentMapForI18n 0.011
localizedLinksContainLinksToLocales 0.019
checkCurrentLanguage 0.008
localizedLinksMaintainSelectors 0.007
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.006
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.006

InspectorTest

dumpByte 0.022
dumpChar 0.014
dumpDate 0.005
dumpLong 0.003
dumpNode 0.016
dumpNull 0.005
dumpArray 0.005
dumpFloat 0.002
dumpShort 0.001
dumpSingleValueProperty 0.003
dumpCollection 0.005
dumpBoolean 0.003
dumpCalendar 0.004
dumpDouble 0.003
dumpObject 0.005
dumpString 0.005
dumpContentMap 0.01
dumpMultiValueProperty 0.005
dumpInteger 0.003
dumpMap 0.006

AreaElementCanRenderAreaTest

test1 0.022
test2 0.049
test3 0.014
test4 0.012
test5 0.161
test6 0.013

InitDirectiveTest

testRenderWithContent 0.015
testRenderWithContentAndDialog 0.013

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.012
dontCreateAreaNodeWhenNodeIsProtected 0.017
testBeginWithEditable 0.011
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.012
testEndWithAllowedInheritButNullInheritConfig 0.01
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.009
testEndWithConfFromTemplateDefinition 0.012
testBeginCreateNodeArea 0.012
testDontRenderCmsCommentsInPreviewMode 0.015
testBeginSimple 0.009
testUseAreaI18nBaseNameIfPossible 0.012
testDoNotFailOnNPEDuringCanRenderAreaScript 0.053
testSingleAreaWithMoreComponentsShouldNotFail 0.029
testBeginWithInheritence 0.008
testResolveTemplateDefinitionConsidersVariation 0.011
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0.01
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.009
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.007
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.007
testBeginWithCreateAreaNodeAttribute 0.008
testAvailableComponentsForSuperuser 0.01
testRenderCmsCommentsWhenBeeingInEditMode 0.011
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.007
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.008
testBeginGetContentFromParent 0.008
tryToCreateAreaNode 0.009
testAvailableComponentsForEditor 0.007

InitElementTest

testOutputContainsContent 0.009
testOutputContainsContentAndDialog 0.011
testOutputWithoutContent 0.013
testOutputwithoutDialog 0.014

NoScriptRendererTest

testRenderListOfComponents 0.015
testRenderSingleComponent 0.011

ComponentElementTest

testRenderBeginAll 0.012
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.012
testRenderBeginWithEditable 0.012
testDontRenderCmsCommentsInPreviewMode 0.012
testRenderWithoutComment 0.011
testResolvePermissionsFromTemplate 0.013
testRenderBeginOnlyContent 0.012
testResolvePermissionsFromTemplateAvailability 0.012
testRenderCmsCommentsWhenBeeingInEditMode 0.011
testPostRender 0.012

PageDirectiveTest

testRenderWithContent 0.234
testRenderWithContentAndDialog 0.01

PageElementTest

testOutputContainsContent 0.013
testOutputContainsContentAndDialog 0.019
testOutputWithoutContent 0.015
testOutputwithoutDialog 0.012

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.015
testCanTellPosition 0.01
testCanTellIfFirstWhenInitializingWithFirst 0.01
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.008
testCanTellIfLastWhenInitializingWith 0.009
testCanTellIfLastAfterNavigating 0.009

TemplatingModuleVersionHandlerTest

updateFrom561 3.564
testInstallFrom4_4_6 1.795
updateFrom55 0.872

Failure Details

[Summary] [Package List] [Test Cases]


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