Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.13
info.magnolia.templating.freemarker 28 0 0 0 100% 0.4
info.magnolia.templating.renderers 4 0 0 0 100% 0.035
info.magnolia.templating.functions 188 0 0 0 100% 0.893
info.magnolia.templating.inspector 20 0 0 0 100% 0.081
info.magnolia.templating.module.setup 3 0 0 0 100% 2.39
info.magnolia.templating.inheritance 8 0 0 0 100% 0.304

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.522
AbstractTemplateElementTest 8 0 0 2 75% 0.094
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.129
AreaElementComponentsTest 5 0 0 0 100% 0.041
AreaElementTest 27 0 0 0 100% 0.23
ComponentElementTest 10 0 0 0 100% 0.059
InitElementTest 4 0 0 0 100% 0.029
MarkupHelperTest 3 0 0 0 100% 0
PageElementTest 4 0 0 0 100% 0.026

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
AbstractDirectiveTest 2 0 0 0 100% 0.027
AreaDirectiveTest 14 0 0 0 100% 0.274
ComponentDirectiveTest 4 0 0 0 100% 0.028
InitDirectiveTest 2 0 0 0 100% 0.014
PageDirectiveTest 2 0 0 0 100% 0.013
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.006
RenderableDefinitionModelTest 3 0 0 0 100% 0.038

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.014
PlainTextRendererTest 2 0 0 0 100% 0.021

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
SiblingsHelperTest 6 0 0 0 100% 0.038
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.094
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.009
TemplatingFunctionsTest 151 0 0 0 100% 0.752

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.496
testSetAttributesInWebContext 0.01
testGetTargetContent 0.007
testGetActivationStatus 0.009

AbstractTemplateElementTest

testCurrentContent 0.016
testUsesDefaultBundleIfNotSpecified 0.046
testGetsCustomMessageCustomBundleWithPageTemplate 0.009
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.008
testDefaultMessageFromCustomBundleWithPageTemplate 0.007
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.008

AreaElementCanRenderAreaTest

test1 0.012
test2 0.019
test3 0.006
test4 0.006
test5 0.079
test6 0.007

AreaElementComponentsTest

testMaxComponentsNotSet 0.011
testShouldShowAddButtonTypeSingle 0.006
testMaxComponentsNotReached 0.007
testShouldShowAddButtonTypeNoComponent 0.007
testMaxComponentsReached 0.01

AreaElementTest

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

ComponentElementTest

testRenderBeginAll 0.006
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.005
testRenderBeginWithEditable 0.006
testDontRenderCmsCommentsInPreviewMode 0.006
testRenderWithoutComment 0.005
testResolvePermissionsFromTemplate 0.006
testRenderBeginOnlyContent 0.005
testResolvePermissionsFromTemplateAvailability 0.007
testRenderCmsCommentsWhenBeeingInEditMode 0.006
testPostRender 0.007

InitElementTest

testOutputContainsContent 0.007
testOutputContainsContentAndDialog 0.007
testOutputWithoutContent 0.007
testOutputwithoutDialog 0.008

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.006
testOutputContainsContentAndDialog 0.006
testOutputWithoutContent 0.006
testOutputwithoutDialog 0.008

AbstractDirectiveTest

testInitContentComponent 0.006
testBodyCheck 0.021

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.154
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.009
testShowAddButtonWhenMaxComponentsIsNotReached 0.01
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.008
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.008
testRenderAreaWithActivationStatusModified 0.009
testRenderSimpleBarWithoutAreaNode 0.007
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.009
testRenderSimpleBar 0.01
testDontShowAddButtonWhenMaxComponentsIsReached 0.01
testCreateAreaNodeSetToFalse 0.018
testCreateAreaNodeSetToTrue 0.006
testDontShowBarWhenAreaIsHasNoComponentType 0.007
testRenderNoBar 0.009

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.008
testRenderSimpleBar 0.006
testRenderWithDialog 0.006
testRenderComponentWithActivationStatusPublished 0.008

InitDirectiveTest

testRenderWithContent 0.005
testRenderWithContentAndDialog 0.009

PageDirectiveTest

testRenderWithContent 0.007
testRenderWithContentAndDialog 0.006

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.006

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.028
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.005
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.005

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.012
testCanTellPosition 0.004
testCanTellIfFirstWhenInitializingWithFirst 0.005
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.007
testCanTellIfLastWhenInitializingWith 0.006
testCanTellIfLastAfterNavigating 0.004

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.01
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.005
wrapContentMapForI18n 0.011
localizedLinksContainLinksToLocales 0.052
checkCurrentLanguage 0.004
localizedLinksMaintainSelectors 0.004
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.004
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.004

TemplatingFunctionsMetaDataTest

testDeprecatedActivatorId 0.005
testDeprecatedActivated 0
testDeprecatedLastAction 0.001
testDeprecatedTemplate 0
testLastModified 0
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.001
testCreatedBy 0
testDeletedComment 0
testDeprecatedTemplateType 0

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.171
testComponentInheritance 0.023
testPropertyInheritanceWithInheritanceDisabled 0.021
testDisabledPropertyInheritance 0.021
testMultiLevelPropertyInheritance 0.02
testDoesNothingOnTopLevelPage 0.018
testResourcesInheritance 0.014
testPropertyInheritance 0.016

InspectorTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 1.151
testInstallFrom4_4_6 0.781
updateFrom55 0.458

NoScriptRendererTest

testRenderListOfComponents 0.008
testRenderSingleComponent 0.006

PlainTextRendererTest

testRenderInPreview 0.015
testRender 0.006

Failure Details

[Summary] [Package List] [Test Cases]


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