Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 2.157
info.magnolia.templating.freemarker 28 0 0 0 100% 0.967
info.magnolia.templating.renderers 4 0 0 0 100% 0.168
info.magnolia.templating.functions 188 0 0 0 100% 2.413
info.magnolia.templating.inspector 20 0 0 0 100% 0.206
info.magnolia.templating.module.setup 3 0 0 0 100% 14.218
info.magnolia.templating.inheritance 8 0 0 0 100% 0.595

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.131
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.112
MarkupHelperTest 3 0 0 0 100% 0
AbstractTemplateElementTest 8 0 0 2 75% 0.462
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.373
AreaElementTest 27 0 0 0 100% 0.785
InitElementTest 4 0 0 0 100% 0.075
ComponentElementTest 10 0 0 0 100% 0.142
PageElementTest 4 0 0 0 100% 0.077

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
ComponentDirectiveTest 4 0 0 0 100% 0.122
RenderableDefinitionModelTest 3 0 0 0 100% 0.116
AreaDirectiveTest 14 0 0 0 100% 0.323
AbstractDirectiveTest 2 0 0 0 100% 0.02
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.02
InitDirectiveTest 2 0 0 0 100% 0.043
PageDirectiveTest 2 0 0 0 100% 0.323

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
PlainTextRendererTest 2 0 0 0 100% 0.108
NoScriptRendererTest 2 0 0 0 100% 0.06

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.063
TemplatingFunctionsTest 151 0 0 0 100% 2.124
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.118
SiblingsHelperTest 6 0 0 0 100% 0.108

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AreaElementComponentsTest

testMaxComponentsNotSet 0.04
testShouldShowAddButtonTypeSingle 0.015
testMaxComponentsNotReached 0.023
testShouldShowAddButtonTypeNoComponent 0.021
testMaxComponentsReached 0.032

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.036
testSetAttributesInWebContext 0.026
testGetTargetContent 0.032
testGetActivationStatus 0.018

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.029
testRenderSimpleBar 0.031
testRenderWithDialog 0.039
testRenderComponentWithActivationStatusPublished 0.023

PlainTextRendererTest

testRenderInPreview 0.084
testRender 0.024

TemplatingFunctionsMetaDataTest

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

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.058
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.016
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.042

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.094
testComponentInheritance 0.105
testPropertyInheritanceWithInheritanceDisabled 0.079
testDisabledPropertyInheritance 0.046
testMultiLevelPropertyInheritance 0.051
testDoesNothingOnTopLevelPage 0.083
testResourcesInheritance 0.081
testPropertyInheritance 0.056

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AbstractTemplateElementTest

testCurrentContent 0.238
testUsesDefaultBundleIfNotSpecified 0.047
testGetsCustomMessageCustomBundleWithPageTemplate 0.024
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.068
testDefaultMessageFromCustomBundleWithPageTemplate 0.049
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.036

TemplatingFunctionsTest

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

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.03
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.038
testShowAddButtonWhenMaxComponentsIsNotReached 0.034
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.029
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.026
testRenderAreaWithActivationStatusModified 0.018
testRenderSimpleBarWithoutAreaNode 0.019
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.018
testRenderSimpleBar 0.02
testDontShowAddButtonWhenMaxComponentsIsReached 0.013
testCreateAreaNodeSetToFalse 0.016
testCreateAreaNodeSetToTrue 0.014
testDontShowBarWhenAreaIsHasNoComponentType 0.035
testRenderNoBar 0.013

AbstractDirectiveTest

testInitContentComponent 0.018
testBodyCheck 0.002

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.02

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.005
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.025
wrapContentMapForI18n 0.013
localizedLinksContainLinksToLocales 0.023
checkCurrentLanguage 0.01
localizedLinksMaintainSelectors 0.014
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.018
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.01

InspectorTest

dumpByte 0.035
dumpChar 0.032
dumpDate 0.013
dumpLong 0.005
dumpNode 0.05
dumpNull 0.006
dumpArray 0.005
dumpFloat 0.003
dumpShort 0.004
dumpSingleValueProperty 0.003
dumpCollection 0.005
dumpBoolean 0.004
dumpCalendar 0.003
dumpDouble 0.006
dumpObject 0.004
dumpString 0.005
dumpContentMap 0.01
dumpMultiValueProperty 0.004
dumpInteger 0.003
dumpMap 0.006

AreaElementCanRenderAreaTest

test1 0.024
test2 0.062
test3 0.021
test4 0.02
test5 0.23
test6 0.016

InitDirectiveTest

testRenderWithContent 0.026
testRenderWithContentAndDialog 0.017

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.024
dontCreateAreaNodeWhenNodeIsProtected 0.047
testBeginWithEditable 0.016
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.014
testEndWithAllowedInheritButNullInheritConfig 0.021
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.014
testEndWithConfFromTemplateDefinition 0.036
testBeginCreateNodeArea 0.016
testDontRenderCmsCommentsInPreviewMode 0.033
testBeginSimple 0.015
testUseAreaI18nBaseNameIfPossible 0.019
testDoNotFailOnNPEDuringCanRenderAreaScript 0.147
testSingleAreaWithMoreComponentsShouldNotFail 0.027
testBeginWithInheritence 0.018
testResolveTemplateDefinitionConsidersVariation 0.032
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0.016
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.03
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.015
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.018
testBeginWithCreateAreaNodeAttribute 0.018
testAvailableComponentsForSuperuser 0.03
testRenderCmsCommentsWhenBeeingInEditMode 0.015
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.017
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.038
testBeginGetContentFromParent 0.042
tryToCreateAreaNode 0.019
testAvailableComponentsForEditor 0.048

InitElementTest

testOutputContainsContent 0.023
testOutputContainsContentAndDialog 0.015
testOutputWithoutContent 0.021
testOutputwithoutDialog 0.016

NoScriptRendererTest

testRenderListOfComponents 0.029
testRenderSingleComponent 0.031

ComponentElementTest

testRenderBeginAll 0.008
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.017
testRenderBeginWithEditable 0.027
testDontRenderCmsCommentsInPreviewMode 0.014
testRenderWithoutComment 0.015
testResolvePermissionsFromTemplate 0.012
testRenderBeginOnlyContent 0.012
testResolvePermissionsFromTemplateAvailability 0.013
testRenderCmsCommentsWhenBeeingInEditMode 0.012
testPostRender 0.012

PageDirectiveTest

testRenderWithContent 0.306
testRenderWithContentAndDialog 0.017

PageElementTest

testOutputContainsContent 0.034
testOutputContainsContentAndDialog 0.017
testOutputWithoutContent 0.014
testOutputwithoutDialog 0.012

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.044
testCanTellPosition 0.013
testCanTellIfFirstWhenInitializingWithFirst 0.011
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.011
testCanTellIfLastWhenInitializingWith 0.012
testCanTellIfLastAfterNavigating 0.017

TemplatingModuleVersionHandlerTest

updateFrom561 8.968
testInstallFrom4_4_6 3.144
updateFrom55 2.106

Failure Details

[Summary] [Package List] [Test Cases]


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