Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.16
info.magnolia.templating.freemarker 28 0 0 0 100% 2.026
info.magnolia.templating.renderers 4 0 0 0 100% 0.104
info.magnolia.templating.functions 188 0 0 0 100% 1.935
info.magnolia.templating.inspector 20 0 0 0 100% 0.211
info.magnolia.templating.module.setup 3 0 0 0 100% 5.562
info.magnolia.templating.inheritance 8 0 0 0 100% 0.76

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% 0.837
AbstractTemplateElementTest 8 0 0 2 75% 0.186
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.226
AreaElementComponentsTest 5 0 0 0 100% 0.088
AreaElementTest 27 0 0 0 100% 0.57
ComponentElementTest 10 0 0 0 100% 0.143
InitElementTest 4 0 0 0 100% 0.063
MarkupHelperTest 3 0 0 0 100% 0
PageElementTest 4 0 0 0 100% 0.047

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
AbstractDirectiveTest 2 0 0 0 100% 0.067
AreaDirectiveTest 14 0 0 0 100% 1.353
ComponentDirectiveTest 4 0 0 0 100% 0.211
InitDirectiveTest 2 0 0 0 100% 0.106
PageDirectiveTest 2 0 0 0 100% 0.101
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.084
RenderableDefinitionModelTest 3 0 0 0 100% 0.104

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.029
PlainTextRendererTest 2 0 0 0 100% 0.075

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
SiblingsHelperTest 6 0 0 0 100% 0.081
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.139
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.025
TemplatingFunctionsTest 151 0 0 0 100% 1.69

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.779
testSetAttributesInWebContext 0.016
testGetTargetContent 0.025
testGetActivationStatus 0.017

AbstractTemplateElementTest

testCurrentContent 0.031
testUsesDefaultBundleIfNotSpecified 0.104
testGetsCustomMessageCustomBundleWithPageTemplate 0.016
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.014
testDefaultMessageFromCustomBundleWithPageTemplate 0.01
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.011

AreaElementCanRenderAreaTest

test1 0.014
test2 0.038
test3 0.008
test4 0.008
test5 0.146
test6 0.012

AreaElementComponentsTest

testMaxComponentsNotSet 0.019
testShouldShowAddButtonTypeSingle 0.008
testMaxComponentsNotReached 0.032
testShouldShowAddButtonTypeNoComponent 0.01
testMaxComponentsReached 0.019

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.012
dontCreateAreaNodeWhenNodeIsProtected 0.02
testBeginWithEditable 0.038
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.048
testEndWithAllowedInheritButNullInheritConfig 0.013
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.011
testEndWithConfFromTemplateDefinition 0.01
testBeginCreateNodeArea 0.012
testDontRenderCmsCommentsInPreviewMode 0.009
testBeginSimple 0.011
testUseAreaI18nBaseNameIfPossible 0.037
testDoNotFailOnNPEDuringCanRenderAreaScript 0.075
testSingleAreaWithMoreComponentsShouldNotFail 0.011
testBeginWithInheritence 0.016
testResolveTemplateDefinitionConsidersVariation 0.034
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0.021
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.012
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.014
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.031
testBeginWithCreateAreaNodeAttribute 0.012
testAvailableComponentsForSuperuser 0.018
testRenderCmsCommentsWhenBeeingInEditMode 0.016
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.022
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.01
testBeginGetContentFromParent 0.012
tryToCreateAreaNode 0.034
testAvailableComponentsForEditor 0.011

ComponentElementTest

testRenderBeginAll 0.011
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.014
testRenderBeginWithEditable 0.012
testDontRenderCmsCommentsInPreviewMode 0.014
testRenderWithoutComment 0.022
testResolvePermissionsFromTemplate 0.014
testRenderBeginOnlyContent 0.014
testResolvePermissionsFromTemplateAvailability 0.018
testRenderCmsCommentsWhenBeeingInEditMode 0.011
testPostRender 0.013

InitElementTest

testOutputContainsContent 0.012
testOutputContainsContentAndDialog 0.012
testOutputWithoutContent 0.028
testOutputwithoutDialog 0.011

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.013
testOutputContainsContentAndDialog 0.013
testOutputWithoutContent 0.011
testOutputwithoutDialog 0.01

AbstractDirectiveTest

testInitContentComponent 0.025
testBodyCheck 0.042

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.754
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.049
testShowAddButtonWhenMaxComponentsIsNotReached 0.044
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.05
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.064
testRenderAreaWithActivationStatusModified 0.042
testRenderSimpleBarWithoutAreaNode 0.043
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.036
testRenderSimpleBar 0.036
testDontShowAddButtonWhenMaxComponentsIsReached 0.038
testCreateAreaNodeSetToFalse 0.04
testCreateAreaNodeSetToTrue 0.068
testDontShowBarWhenAreaIsHasNoComponentType 0.041
testRenderNoBar 0.048

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.08
testRenderSimpleBar 0.049
testRenderWithDialog 0.04
testRenderComponentWithActivationStatusPublished 0.042

InitDirectiveTest

testRenderWithContent 0.062
testRenderWithContentAndDialog 0.044

PageDirectiveTest

testRenderWithContent 0.057
testRenderWithContentAndDialog 0.044

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.084

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.064
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.019
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.021

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.01
testCanTellPosition 0.011
testCanTellIfFirstWhenInitializingWithFirst 0.008
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.035
testCanTellIfLastWhenInitializingWith 0.009
testCanTellIfLastAfterNavigating 0.008

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.019
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.01
wrapContentMapForI18n 0.009
localizedLinksContainLinksToLocales 0.058
checkCurrentLanguage 0.01
localizedLinksMaintainSelectors 0.009
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.014
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.01

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.391
testComponentInheritance 0.07
testPropertyInheritanceWithInheritanceDisabled 0.072
testDisabledPropertyInheritance 0.061
testMultiLevelPropertyInheritance 0.057
testDoesNothingOnTopLevelPage 0.038
testResourcesInheritance 0.038
testPropertyInheritance 0.033

InspectorTest

dumpByte 0.104
dumpChar 0.012
dumpDate 0.003
dumpLong 0.003
dumpNode 0.012
dumpNull 0.005
dumpArray 0.004
dumpFloat 0.003
dumpShort 0.002
dumpSingleValueProperty 0.003
dumpCollection 0.019
dumpBoolean 0.003
dumpCalendar 0.003
dumpDouble 0.004
dumpObject 0.004
dumpString 0.004
dumpContentMap 0.006
dumpMultiValueProperty 0.006
dumpInteger 0.007
dumpMap 0.004

TemplatingModuleVersionHandlerTest

updateFrom561 3.009
testInstallFrom4_4_6 1.561
updateFrom55 0.992

NoScriptRendererTest

testRenderListOfComponents 0.019
testRenderSingleComponent 0.01

PlainTextRendererTest

testRenderInPreview 0.062
testRender 0.013

Failure Details

[Summary] [Package List] [Test Cases]


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