Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 6.038
info.magnolia.templating.freemarker 28 0 0 0 100% 1.92
info.magnolia.templating.renderers 4 0 0 0 100% 0.13
info.magnolia.templating.functions 188 0 0 0 100% 4.607
info.magnolia.templating.inspector 20 0 0 0 100% 0.646
info.magnolia.templating.module.setup 3 0 0 0 100% 13.271
info.magnolia.templating.inheritance 8 0 0 0 100% 1.487

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
AbstractContentTemplatingElementTest 4 0 0 0 100% 2.654
AbstractTemplateElementTest 8 0 0 2 75% 0.541
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.672
AreaElementComponentsTest 5 0 0 0 100% 0.328
AreaElementTest 27 0 0 0 100% 1.133
ComponentElementTest 10 0 0 0 100% 0.299
InitElementTest 4 0 0 0 100% 0.161
MarkupHelperTest 3 0 0 0 100% 0.001
PageElementTest 4 0 0 0 100% 0.249

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
AbstractDirectiveTest 2 0 0 0 100% 0.127
AreaDirectiveTest 14 0 0 0 100% 1.142
ComponentDirectiveTest 4 0 0 0 100% 0.281
InitDirectiveTest 2 0 0 0 100% 0.047
PageDirectiveTest 2 0 0 0 100% 0.07
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.046
RenderableDefinitionModelTest 3 0 0 0 100% 0.207

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.039
PlainTextRendererTest 2 0 0 0 100% 0.091

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
SiblingsHelperTest 6 0 0 0 100% 0.16
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.408
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.028
TemplatingFunctionsTest 151 0 0 0 100% 4.011

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 2.497
testSetAttributesInWebContext 0.057
testGetTargetContent 0.056
testGetActivationStatus 0.044

AbstractTemplateElementTest

testCurrentContent 0.121
testUsesDefaultBundleIfNotSpecified 0.24
testGetsCustomMessageCustomBundleWithPageTemplate 0.026
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.037
testDefaultMessageFromCustomBundleWithPageTemplate 0.034
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.083

AreaElementCanRenderAreaTest

test1 0.049
test2 0.077
test3 0.044
test4 0.057
test5 0.371
test6 0.074

AreaElementComponentsTest

testMaxComponentsNotSet 0.112
testShouldShowAddButtonTypeSingle 0.032
testMaxComponentsNotReached 0.046
testShouldShowAddButtonTypeNoComponent 0.022
testMaxComponentsReached 0.116

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.033
dontCreateAreaNodeWhenNodeIsProtected 0.034
testBeginWithEditable 0.022
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.037
testEndWithAllowedInheritButNullInheritConfig 0.018
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.017
testEndWithConfFromTemplateDefinition 0.032
testBeginCreateNodeArea 0.018
testDontRenderCmsCommentsInPreviewMode 0.018
testBeginSimple 0.08
testUseAreaI18nBaseNameIfPossible 0.078
testDoNotFailOnNPEDuringCanRenderAreaScript 0.208
testSingleAreaWithMoreComponentsShouldNotFail 0.026
testBeginWithInheritence 0.032
testResolveTemplateDefinitionConsidersVariation 0.031
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0.053
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.034
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.018
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.033
testBeginWithCreateAreaNodeAttribute 0.018
testAvailableComponentsForSuperuser 0.055
testRenderCmsCommentsWhenBeeingInEditMode 0.045
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.049
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.051
testBeginGetContentFromParent 0.03
tryToCreateAreaNode 0.022
testAvailableComponentsForEditor 0.041

ComponentElementTest

testRenderBeginAll 0.032
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.022
testRenderBeginWithEditable 0.023
testDontRenderCmsCommentsInPreviewMode 0.027
testRenderWithoutComment 0.021
testResolvePermissionsFromTemplate 0.026
testRenderBeginOnlyContent 0.022
testResolvePermissionsFromTemplateAvailability 0.027
testRenderCmsCommentsWhenBeeingInEditMode 0.076
testPostRender 0.023

InitElementTest

testOutputContainsContent 0.05
testOutputContainsContentAndDialog 0.059
testOutputWithoutContent 0.03
testOutputwithoutDialog 0.022

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0.001
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.035
testOutputContainsContentAndDialog 0.145
testOutputWithoutContent 0.025
testOutputwithoutDialog 0.044

AbstractDirectiveTest

testInitContentComponent 0.051
testBodyCheck 0.076

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.515
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.046
testShowAddButtonWhenMaxComponentsIsNotReached 0.056
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.05
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.039
testRenderAreaWithActivationStatusModified 0.029
testRenderSimpleBarWithoutAreaNode 0.041
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.053
testRenderSimpleBar 0.064
testDontShowAddButtonWhenMaxComponentsIsReached 0.029
testCreateAreaNodeSetToFalse 0.061
testCreateAreaNodeSetToTrue 0.067
testDontShowBarWhenAreaIsHasNoComponentType 0.055
testRenderNoBar 0.037

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.079
testRenderSimpleBar 0.127
testRenderWithDialog 0.044
testRenderComponentWithActivationStatusPublished 0.031

InitDirectiveTest

testRenderWithContent 0.019
testRenderWithContentAndDialog 0.028

PageDirectiveTest

testRenderWithContent 0.04
testRenderWithContentAndDialog 0.03

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.046

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.116
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.017
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.074

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.051
testCanTellPosition 0.013
testCanTellIfFirstWhenInitializingWithFirst 0.014
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.012
testCanTellIfLastWhenInitializingWith 0.056
testCanTellIfLastAfterNavigating 0.014

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.032
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.056
wrapContentMapForI18n 0.012
localizedLinksContainLinksToLocales 0.177
checkCurrentLanguage 0.011
localizedLinksMaintainSelectors 0.049
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.017
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.054

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.705
testComponentInheritance 0.169
testPropertyInheritanceWithInheritanceDisabled 0.219
testDisabledPropertyInheritance 0.066
testMultiLevelPropertyInheritance 0.116
testDoesNothingOnTopLevelPage 0.082
testResourcesInheritance 0.052
testPropertyInheritance 0.078

InspectorTest

dumpByte 0.207
dumpChar 0.051
dumpDate 0.013
dumpLong 0.005
dumpNode 0.052
dumpNull 0.014
dumpArray 0.023
dumpFloat 0.022
dumpShort 0.014
dumpSingleValueProperty 0.024
dumpCollection 0.026
dumpBoolean 0.01
dumpCalendar 0.011
dumpDouble 0.014
dumpObject 0.023
dumpString 0.047
dumpContentMap 0.051
dumpMultiValueProperty 0.012
dumpInteger 0.011
dumpMap 0.016

TemplatingModuleVersionHandlerTest

updateFrom561 6.644
testInstallFrom4_4_6 3.966
updateFrom55 2.661

NoScriptRendererTest

testRenderListOfComponents 0.025
testRenderSingleComponent 0.014

PlainTextRendererTest

testRenderInPreview 0.06
testRender 0.031

Failure Details

[Summary] [Package List] [Test Cases]


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