Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
316 0 0 2 99.367% 16.204

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 67 0 0 2 97.015% 1.513
info.magnolia.templating.freemarker 26 0 0 0 100% 1.422
info.magnolia.templating.renderers 4 0 0 0 100% 1.44
info.magnolia.templating.functions 188 0 0 0 100% 2.002
info.magnolia.templating.inspector 20 0 0 0 100% 0.465
info.magnolia.templating.module.setup 3 0 0 0 100% 8.949
info.magnolia.templating.inheritance 8 0 0 0 100% 0.413

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.209
MarkupHelperTest 3 0 0 0 100% 0
AreaElementTest 27 0 0 0 100% 0.603
AbstractTemplateElementTest 8 0 0 2 75% 0.139
ComponentElementTest 10 0 0 0 100% 0.251
PageElementTest 4 0 0 0 100% 0.108
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.144
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.059

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
RenderableDefinitionModelTest 3 0 0 0 100% 0.102
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.398
PageDirectiveTest 2 0 0 0 100% 0.052
AbstractDirectiveTest 2 0 0 0 100% 0.059
AreaDirectiveTest 14 0 0 0 100% 0.664
ComponentDirectiveTest 4 0 0 0 100% 0.147

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 1.233
PlainTextRendererTest 2 0 0 0 100% 0.207

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.092
SiblingsHelperTest 6 0 0 0 100% 0.05
TemplatingFunctionsTest 151 0 0 0 100% 1.825
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.035

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.072
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.012
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.018

InspectorTest

dumpByte 0.167
dumpChar 0.05
dumpDate 0.014
dumpLong 0.022
dumpNode 0.04
dumpNull 0.008
dumpArray 0.013
dumpFloat 0.01
dumpShort 0.007
dumpSingleValueProperty 0.007
dumpCollection 0.01
dumpBoolean 0.007
dumpCalendar 0.004
dumpDouble 0.004
dumpObject 0.015
dumpString 0.017
dumpContentMap 0.028
dumpMultiValueProperty 0.024
dumpInteger 0.004
dumpMap 0.014

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.069
testComponentInheritance 0.035
testPropertyInheritanceWithInheritanceDisabled 0.047
testDisabledPropertyInheritance 0.042
testMultiLevelPropertyInheritance 0.06
testDoesNothingOnTopLevelPage 0.055
testResourcesInheritance 0.048
testPropertyInheritance 0.057

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.001
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.023
wrapContentMapForI18n 0.009
localizedLinksContainLinksToLocales 0.02
checkCurrentLanguage 0.008
localizedLinksMaintainSelectors 0.01
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.011
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.01

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.398

AreaElementComponentsTest

testMaxComponentsNotSet 0.051
testShouldShowAddButtonTypeSingle 0.027
testMaxComponentsNotReached 0.033
testShouldShowAddButtonTypeNoComponent 0.04
testMaxComponentsReached 0.058

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.015
dontCreateAreaNodeWhenNodeIsProtected 0.024
testBeginWithEditable 0.02
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.014
testEndWithAllowedInheritButNullInheritConfig 0.037
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.014
testEndWithConfFromTemplateDefinition 0.012
testBeginCreateNodeArea 0.011
testDontRenderCmsCommentsInPreviewMode 0.014
testBeginSimple 0.013
testUseAreaI18nBaseNameIfPossible 0.016
testDoNotFailOnNPEDuringCanRenderAreaScript 0.269
testSingleAreaWithMoreComponentsShouldNotFail 0
testBeginWithInheritence 0
testResolveTemplateDefinitionConsidersVariation 0
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0
testBeginWithCreateAreaNodeAttribute 0.013
testAvailableComponentsForSuperuser 0.016
testRenderCmsCommentsWhenBeeingInEditMode 0.017
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.017
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.024
testBeginGetContentFromParent 0.016
tryToCreateAreaNode 0.025
testAvailableComponentsForEditor 0.016

NoScriptRendererTest

testRenderListOfComponents 1.206
testRenderSingleComponent 0.027

AbstractTemplateElementTest

testCurrentContent 0.022
testUsesDefaultBundleIfNotSpecified 0.036
testGetsCustomMessageCustomBundleWithPageTemplate 0.017
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.02
testDefaultMessageFromCustomBundleWithPageTemplate 0.029
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.015

PageDirectiveTest

testRenderWithContent 0.036
testRenderWithContentAndDialog 0.016

AbstractDirectiveTest

testInitContentComponent 0.016
testBodyCheck 0.043

SiblingsHelperTest

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

ComponentElementTest

testRenderBeginAll 0.036
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.035
testRenderBeginWithEditable 0.02
testDontRenderCmsCommentsInPreviewMode 0.017
testRenderWithoutComment 0.047
testResolvePermissionsFromTemplate 0.017
testRenderBeginOnlyContent 0.016
testResolvePermissionsFromTemplateAvailability 0.019
testRenderCmsCommentsWhenBeeingInEditMode 0.023
testPostRender 0.021

TemplatingFunctionsTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 4.39
testInstallFrom4_4_6 2.845
updateFrom55 1.714

PageElementTest

testOutputContainsContent 0.029
testOutputContainsContentAndDialog 0.014
testOutputWithoutContent 0.016
testOutputwithoutDialog 0.049

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.281
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.028
testShowAddButtonWhenMaxComponentsIsNotReached 0.041
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.052
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.024
testRenderAreaWithActivationStatusModified 0.02
testRenderSimpleBarWithoutAreaNode 0.031
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.032
testRenderSimpleBar 0.047
testDontShowAddButtonWhenMaxComponentsIsReached 0.025
testCreateAreaNodeSetToFalse 0.018
testCreateAreaNodeSetToTrue 0.029
testDontShowBarWhenAreaIsHasNoComponentType 0.018
testRenderNoBar 0.018

PlainTextRendererTest

testRenderInPreview 0.194
testRender 0.013

TemplatingFunctionsMetaDataTest

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

AreaElementCanRenderAreaTest

test1 0.019
test2 0.088
test3 0
test4 0
test5 0.015
test6 0.022

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.045
testRenderSimpleBar 0.036
testRenderWithDialog 0.025
testRenderComponentWithActivationStatusPublished 0.041

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.013
testSetAttributesInWebContext 0.018
testGetTargetContent 0.011
testGetActivationStatus 0.017

Failure Details

[Summary] [Package List] [Test Cases]


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