Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.539
info.magnolia.templating.freemarker 26 0 0 0 100% 0.449
info.magnolia.templating.renderers 4 0 0 0 100% 0.851
info.magnolia.templating.functions 188 0 0 0 100% 0.956
info.magnolia.templating.inspector 20 0 0 0 100% 0.118
info.magnolia.templating.module.setup 2 0 0 0 100% 1.773
info.magnolia.templating.inheritance 8 0 0 0 100% 0.129

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.04
MarkupHelperTest 3 0 0 0 100% 0
AreaElementTest 27 0 0 0 100% 0.241
AbstractTemplateElementTest 8 0 0 2 75% 0.066
ComponentElementTest 10 0 0 0 100% 0.081
PageElementTest 4 0 0 0 100% 0.026
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.049
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.036

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
RenderableDefinitionModelTest 3 0 0 0 100% 0.027
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.169
PageDirectiveTest 2 0 0 0 100% 0.018
AbstractDirectiveTest 2 0 0 0 100% 0.034
AreaDirectiveTest 14 0 0 0 100% 0.166
ComponentDirectiveTest 4 0 0 0 100% 0.035

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.756
PlainTextRendererTest 2 0 0 0 100% 0.095

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.049
SiblingsHelperTest 6 0 0 0 100% 0.029
TemplatingFunctionsTest 151 0 0 0 100% 0.864
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.014

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.018
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.005
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.004

InspectorTest

dumpByte 0.062
dumpChar 0.011
dumpDate 0.002
dumpLong 0.001
dumpNode 0.008
dumpNull 0.002
dumpArray 0.003
dumpFloat 0.001
dumpShort 0.001
dumpSingleValueProperty 0.001
dumpCollection 0.001
dumpBoolean 0.001
dumpCalendar 0.001
dumpDouble 0.001
dumpObject 0.001
dumpString 0.002
dumpContentMap 0.006
dumpMultiValueProperty 0.003
dumpInteger 0.001
dumpMap 0.002

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.024
testComponentInheritance 0.017
testPropertyInheritanceWithInheritanceDisabled 0.017
testDisabledPropertyInheritance 0.015
testMultiLevelPropertyInheritance 0.015
testDoesNothingOnTopLevelPage 0.013
testResourcesInheritance 0.013
testPropertyInheritance 0.013

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.001
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.006
wrapContentMapForI18n 0.005
localizedLinksContainLinksToLocales 0.009
checkCurrentLanguage 0.008
localizedLinksMaintainSelectors 0.007
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.007
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.005

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.169

AreaElementComponentsTest

testMaxComponentsNotSet 0.011
testShouldShowAddButtonTypeSingle 0.006
testMaxComponentsNotReached 0.007
testShouldShowAddButtonTypeNoComponent 0.005
testMaxComponentsReached 0.01

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AreaElementTest

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

NoScriptRendererTest

testRenderListOfComponents 0.738
testRenderSingleComponent 0.009

AbstractTemplateElementTest

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

PageDirectiveTest

testRenderWithContent 0.01
testRenderWithContentAndDialog 0.008

AbstractDirectiveTest

testInitContentComponent 0.006
testBodyCheck 0.028

SiblingsHelperTest

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

ComponentElementTest

testRenderBeginAll 0.007
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.006
testRenderBeginWithEditable 0.007
testDontRenderCmsCommentsInPreviewMode 0.007
testRenderWithoutComment 0.006
testResolvePermissionsFromTemplate 0.013
testRenderBeginOnlyContent 0.01
testResolvePermissionsFromTemplateAvailability 0.011
testRenderCmsCommentsWhenBeeingInEditMode 0.008
testPostRender 0.006

TemplatingFunctionsTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 1.231
updateFrom55 0.542

PageElementTest

testOutputContainsContent 0.007
testOutputContainsContentAndDialog 0.005
testOutputWithoutContent 0.007
testOutputwithoutDialog 0.007

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.069
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.008
testShowAddButtonWhenMaxComponentsIsNotReached 0.006
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.012
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.007
testRenderAreaWithActivationStatusModified 0.007
testRenderSimpleBarWithoutAreaNode 0.006
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.007
testRenderSimpleBar 0.008
testDontShowAddButtonWhenMaxComponentsIsReached 0.008
testCreateAreaNodeSetToFalse 0.007
testCreateAreaNodeSetToTrue 0.007
testDontShowBarWhenAreaIsHasNoComponentType 0.008
testRenderNoBar 0.006

PlainTextRendererTest

testRenderInPreview 0.089
testRender 0.005

TemplatingFunctionsMetaDataTest

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

AreaElementCanRenderAreaTest

test1 0.009
test2 0.01
test3 0.007
test4 0.006
test5 0.008
test6 0.007

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.01
testRenderSimpleBar 0.008
testRenderWithDialog 0.008
testRenderComponentWithActivationStatusPublished 0.009

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.013
testSetAttributesInWebContext 0.007
testGetTargetContent 0.008
testGetActivationStatus 0.008

Failure Details

[Summary] [Package List] [Test Cases]


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