Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 1.692
info.magnolia.templating.freemarker 28 0 0 0 100% 2.12
info.magnolia.templating.renderers 4 0 0 0 100% 0.079
info.magnolia.templating.functions 182 0 0 0 100% 1.727
info.magnolia.templating.inspector 20 0 0 0 100% 0.24
info.magnolia.templating.module.setup 2 0 0 0 100% 4.502
info.magnolia.templating.inheritance 8 0 0 0 100% 0.7

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.45
AbstractTemplateElementTest 8 0 0 2 75% 0.198
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.212
AreaElementComponentsTest 5 0 0 0 100% 0.09
AreaElementTest 27 0 0 0 100% 0.509
ComponentElementTest 10 0 0 0 100% 0.146
InitElementTest 4 0 0 0 100% 0.041
MarkupHelperTest 3 0 0 0 100% 0
PageElementTest 4 0 0 0 100% 0.046

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
AbstractDirectiveTest 2 0 0 0 100% 0.046
AreaDirectiveTest 14 0 0 0 100% 1.52
ComponentDirectiveTest 4 0 0 0 100% 0.227
InitDirectiveTest 2 0 0 0 100% 0.099
PageDirectiveTest 2 0 0 0 100% 0.081
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.048
RenderableDefinitionModelTest 3 0 0 0 100% 0.099

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.044
PlainTextRendererTest 2 0 0 0 100% 0.035

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.191
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.012
TemplatingFunctionsTest 151 0 0 0 100% 1.524

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.413
testSetAttributesInWebContext 0.01
testGetTargetContent 0.013
testGetActivationStatus 0.014

AbstractTemplateElementTest

testCurrentContent 0.038
testUsesDefaultBundleIfNotSpecified 0.092
testGetsCustomMessageCustomBundleWithPageTemplate 0.022
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.022
testDefaultMessageFromCustomBundleWithPageTemplate 0.013
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.011

AreaElementCanRenderAreaTest

test1 0.014
test2 0.03
test3 0.009
test4 0.008
test5 0.138
test6 0.013

AreaElementComponentsTest

testMaxComponentsNotSet 0.024
testShouldShowAddButtonTypeSingle 0.014
testMaxComponentsNotReached 0.016
testShouldShowAddButtonTypeNoComponent 0.014
testMaxComponentsReached 0.022

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.014
dontCreateAreaNodeWhenNodeIsProtected 0.019
testBeginWithEditable 0.013
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.013
testEndWithAllowedInheritButNullInheritConfig 0.018
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.019
testEndWithConfFromTemplateDefinition 0.018
testBeginCreateNodeArea 0.017
testDontRenderCmsCommentsInPreviewMode 0.017
testBeginSimple 0.016
testUseAreaI18nBaseNameIfPossible 0.02
testDoNotFailOnNPEDuringCanRenderAreaScript 0.092
testSingleAreaWithMoreComponentsShouldNotFail 0.016
testBeginWithInheritence 0.042
testResolveTemplateDefinitionConsidersVariation 0.027
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0.024
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.011
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.011
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.01
testBeginWithCreateAreaNodeAttribute 0.012
testAvailableComponentsForSuperuser 0.014
testRenderCmsCommentsWhenBeeingInEditMode 0.014
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.011
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.012
testBeginGetContentFromParent 0.007
tryToCreateAreaNode 0.011
testAvailableComponentsForEditor 0.011

ComponentElementTest

testRenderBeginAll 0.01
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.009
testRenderBeginWithEditable 0.012
testDontRenderCmsCommentsInPreviewMode 0.02
testRenderWithoutComment 0.013
testResolvePermissionsFromTemplate 0.026
testRenderBeginOnlyContent 0.02
testResolvePermissionsFromTemplateAvailability 0.017
testRenderCmsCommentsWhenBeeingInEditMode 0.01
testPostRender 0.009

InitElementTest

testOutputContainsContent 0.01
testOutputContainsContentAndDialog 0.01
testOutputWithoutContent 0.011
testOutputwithoutDialog 0.01

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.012
testOutputContainsContentAndDialog 0.011
testOutputWithoutContent 0.012
testOutputwithoutDialog 0.011

AbstractDirectiveTest

testInitContentComponent 0.009
testBodyCheck 0.037

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.697
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.089
testShowAddButtonWhenMaxComponentsIsNotReached 0.065
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.073
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.085
testRenderAreaWithActivationStatusModified 0.123
testRenderSimpleBarWithoutAreaNode 0.043
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.043
testRenderSimpleBar 0.057
testDontShowAddButtonWhenMaxComponentsIsReached 0.047
testCreateAreaNodeSetToFalse 0.039
testCreateAreaNodeSetToTrue 0.054
testDontShowBarWhenAreaIsHasNoComponentType 0.053
testRenderNoBar 0.052

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.068
testRenderSimpleBar 0.06
testRenderWithDialog 0.053
testRenderComponentWithActivationStatusPublished 0.046

InitDirectiveTest

testRenderWithContent 0.059
testRenderWithContentAndDialog 0.04

PageDirectiveTest

testRenderWithContent 0.036
testRenderWithContentAndDialog 0.045

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.048

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.05
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.033
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.016

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.033
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.015
wrapContentMapForI18n 0.007
localizedLinksContainLinksToLocales 0.095
checkCurrentLanguage 0.011
localizedLinksMaintainSelectors 0.014
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.009
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.007

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.368
testComponentInheritance 0.05
testPropertyInheritanceWithInheritanceDisabled 0.048
testDisabledPropertyInheritance 0.059
testMultiLevelPropertyInheritance 0.06
testDoesNothingOnTopLevelPage 0.049
testResourcesInheritance 0.024
testPropertyInheritance 0.042

InspectorTest

dumpByte 0.103
dumpChar 0.009
dumpDate 0.012
dumpLong 0.005
dumpNode 0.015
dumpNull 0.007
dumpArray 0.005
dumpFloat 0.004
dumpShort 0.003
dumpSingleValueProperty 0.002
dumpCollection 0.004
dumpBoolean 0.004
dumpCalendar 0.003
dumpDouble 0.004
dumpObject 0.004
dumpString 0.018
dumpContentMap 0.017
dumpMultiValueProperty 0.007
dumpInteger 0.006
dumpMap 0.008

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 3.459
updateFrom55 1.043

NoScriptRendererTest

testRenderListOfComponents 0.03
testRenderSingleComponent 0.014

PlainTextRendererTest

testRenderInPreview 0.026
testRender 0.009

Failure Details

[Summary] [Package List] [Test Cases]


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