Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
315 0 0 2 99.365% 5.931

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% 0.62
info.magnolia.templating.freemarker 26 0 0 0 100% 0.59
info.magnolia.templating.renderers 4 0 0 0 100% 0.819
info.magnolia.templating.functions 188 0 0 0 100% 1.124
info.magnolia.templating.inspector 20 0 0 0 100% 0.155
info.magnolia.templating.module.setup 2 0 0 0 100% 2.465
info.magnolia.templating.inheritance 8 0 0 0 100% 0.158

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.045
MarkupHelperTest 3 0 0 0 100% 0
AreaElementTest 27 0 0 0 100% 0.283
AbstractTemplateElementTest 8 0 0 2 75% 0.07
ComponentElementTest 10 0 0 0 100% 0.115
PageElementTest 4 0 0 0 100% 0.029
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.046
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.032

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
RenderableDefinitionModelTest 3 0 0 0 100% 0.035
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.137
PageDirectiveTest 2 0 0 0 100% 0.029
AbstractDirectiveTest 2 0 0 0 100% 0.028
AreaDirectiveTest 14 0 0 0 100% 0.303
ComponentDirectiveTest 4 0 0 0 100% 0.058

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.74
PlainTextRendererTest 2 0 0 0 100% 0.079

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.052
SiblingsHelperTest 6 0 0 0 100% 0.028
TemplatingFunctionsTest 151 0 0 0 100% 1.028
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.016

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.02
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.006
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.007

InspectorTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.027
testComponentInheritance 0.023
testPropertyInheritanceWithInheritanceDisabled 0.019
testDisabledPropertyInheritance 0.02
testMultiLevelPropertyInheritance 0.019
testDoesNothingOnTopLevelPage 0.019
testResourcesInheritance 0.014
testPropertyInheritance 0.017

TemplatingFunctionsI18nTest

wrapNodeForI18n 0
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.005
wrapContentMapForI18n 0.007
localizedLinksContainLinksToLocales 0.014
checkCurrentLanguage 0.006
localizedLinksMaintainSelectors 0.007
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.008
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.005

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.137

AreaElementComponentsTest

testMaxComponentsNotSet 0.01
testShouldShowAddButtonTypeSingle 0.007
testMaxComponentsNotReached 0.01
testShouldShowAddButtonTypeNoComponent 0.008
testMaxComponentsReached 0.01

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.009
dontCreateAreaNodeWhenNodeIsProtected 0.01
testBeginWithEditable 0.009
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.009
testEndWithAllowedInheritButNullInheritConfig 0.011
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.011
testEndWithConfFromTemplateDefinition 0.008
testBeginCreateNodeArea 0.009
testDontRenderCmsCommentsInPreviewMode 0.023
testBeginSimple 0.011
testUseAreaI18nBaseNameIfPossible 0.009
testDoNotFailOnNPEDuringCanRenderAreaScript 0.079
testSingleAreaWithMoreComponentsShouldNotFail 0
testBeginWithInheritence 0
testResolveTemplateDefinitionConsidersVariation 0
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.006
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.008
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.006
testBeginWithCreateAreaNodeAttribute 0.009
testAvailableComponentsForSuperuser 0.009
testRenderCmsCommentsWhenBeeingInEditMode 0.007
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.008
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.013
testBeginGetContentFromParent 0.006
tryToCreateAreaNode 0.006
testAvailableComponentsForEditor 0.006

NoScriptRendererTest

testRenderListOfComponents 0.685
testRenderSingleComponent 0.009

AbstractTemplateElementTest

testCurrentContent 0.008
testUsesDefaultBundleIfNotSpecified 0.014
testGetsCustomMessageCustomBundleWithPageTemplate 0.012
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.012
testDefaultMessageFromCustomBundleWithPageTemplate 0.013
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.01

PageDirectiveTest

testRenderWithContent 0.016
testRenderWithContentAndDialog 0.012

AbstractDirectiveTest

testInitContentComponent 0.006
testBodyCheck 0.022

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.002
testCanTellPosition 0.006
testCanTellIfFirstWhenInitializingWithFirst 0.004
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.006
testCanTellIfLastWhenInitializingWith 0.004
testCanTellIfLastAfterNavigating 0.005

ComponentElementTest

testRenderBeginAll 0.014
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.02
testRenderBeginWithEditable 0.01
testDontRenderCmsCommentsInPreviewMode 0.01
testRenderWithoutComment 0.008
testResolvePermissionsFromTemplate 0.012
testRenderBeginOnlyContent 0.009
testResolvePermissionsFromTemplateAvailability 0.01
testRenderCmsCommentsWhenBeeingInEditMode 0.011
testPostRender 0.011

TemplatingFunctionsTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 1.738
updateFrom55 0.727

PageElementTest

testOutputContainsContent 0.006
testOutputContainsContentAndDialog 0.008
testOutputWithoutContent 0.008
testOutputwithoutDialog 0.007

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.115
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.011
testShowAddButtonWhenMaxComponentsIsNotReached 0.015
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.02
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.008
testRenderAreaWithActivationStatusModified 0.009
testRenderSimpleBarWithoutAreaNode 0.021
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.016
testRenderSimpleBar 0.012
testDontShowAddButtonWhenMaxComponentsIsReached 0.016
testCreateAreaNodeSetToFalse 0.017
testCreateAreaNodeSetToTrue 0.017
testDontShowBarWhenAreaIsHasNoComponentType 0.013
testRenderNoBar 0.013

PlainTextRendererTest

testRenderInPreview 0.059
testRender 0.02

TemplatingFunctionsMetaDataTest

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

AreaElementCanRenderAreaTest

test1 0.007
test2 0.014
test3 0.002
test4 0.007
test5 0.009
test6 0.007

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.015
testRenderSimpleBar 0.018
testRenderWithDialog 0.013
testRenderComponentWithActivationStatusPublished 0.012

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.007
testSetAttributesInWebContext 0.008
testGetTargetContent 0.008
testGetActivationStatus 0.009

Failure Details

[Summary] [Package List] [Test Cases]


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