Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 0.552
info.magnolia.templating.freemarker 28 0 0 0 100% 0.539
info.magnolia.templating.renderers 4 0 0 0 100% 0.796
info.magnolia.templating.functions 188 0 0 0 100% 0.96
info.magnolia.templating.inspector 20 0 0 0 100% 0.136
info.magnolia.templating.module.setup 3 0 0 0 100% 4.168
info.magnolia.templating.inheritance 8 0 0 0 100% 0.139

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
InitElementTest 4 0 0 0 100% 0.021
AreaElementComponentsTest 5 0 0 0 100% 0.043
MarkupHelperTest 3 0 0 0 100% 0
AreaElementTest 27 0 0 0 100% 0.226
AbstractTemplateElementTest 8 0 0 2 75% 0.056
ComponentElementTest 10 0 0 0 100% 0.094
PageElementTest 4 0 0 0 100% 0.027
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.058
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.027

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
RenderableDefinitionModelTest 3 0 0 0 100% 0.047
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.164
InitDirectiveTest 2 0 0 0 100% 0.016
PageDirectiveTest 2 0 0 0 100% 0.024
AbstractDirectiveTest 2 0 0 0 100% 0.03
AreaDirectiveTest 14 0 0 0 100% 0.214
ComponentDirectiveTest 4 0 0 0 100% 0.044

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.686
PlainTextRendererTest 2 0 0 0 100% 0.11

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.043
SiblingsHelperTest 6 0 0 0 100% 0.037
TemplatingFunctionsTest 151 0 0 0 100% 0.871
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.009

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.025
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.016
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.006

InspectorTest

dumpByte 0.039
dumpChar 0.015
dumpDate 0.006
dumpLong 0.002
dumpNode 0.014
dumpNull 0.004
dumpArray 0.005
dumpFloat 0.003
dumpShort 0.003
dumpSingleValueProperty 0.003
dumpCollection 0.005
dumpBoolean 0.003
dumpCalendar 0.003
dumpDouble 0.003
dumpObject 0.003
dumpString 0.004
dumpContentMap 0.01
dumpMultiValueProperty 0.004
dumpInteger 0.002
dumpMap 0.005

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.024
testComponentInheritance 0.02
testPropertyInheritanceWithInheritanceDisabled 0.018
testDisabledPropertyInheritance 0.018
testMultiLevelPropertyInheritance 0.016
testDoesNothingOnTopLevelPage 0.013
testResourcesInheritance 0.013
testPropertyInheritance 0.017

TemplatingFunctionsI18nTest

wrapNodeForI18n 0
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.005
wrapContentMapForI18n 0.006
localizedLinksContainLinksToLocales 0.008
checkCurrentLanguage 0.007
localizedLinksMaintainSelectors 0.007
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.006
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.004

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.164

InitDirectiveTest

testRenderWithContent 0.008
testRenderWithContentAndDialog 0.008

InitElementTest

testOutputContainsContent 0.005
testOutputContainsContentAndDialog 0.006
testOutputWithoutContent 0.005
testOutputwithoutDialog 0.005

AreaElementComponentsTest

testMaxComponentsNotSet 0.01
testShouldShowAddButtonTypeSingle 0.009
testMaxComponentsNotReached 0.009
testShouldShowAddButtonTypeNoComponent 0.006
testMaxComponentsReached 0.009

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AreaElementTest

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

NoScriptRendererTest

testRenderListOfComponents 0.676
testRenderSingleComponent 0.01

AbstractTemplateElementTest

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

PageDirectiveTest

testRenderWithContent 0.013
testRenderWithContentAndDialog 0.011

AbstractDirectiveTest

testInitContentComponent 0.007
testBodyCheck 0.023

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.009
testCanTellPosition 0.005
testCanTellIfFirstWhenInitializingWithFirst 0.006
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.005
testCanTellIfLastWhenInitializingWith 0.005
testCanTellIfLastAfterNavigating 0.007

ComponentElementTest

testRenderBeginAll 0.014
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.008
testRenderBeginWithEditable 0.008
testDontRenderCmsCommentsInPreviewMode 0.006
testRenderWithoutComment 0.007
testResolvePermissionsFromTemplate 0.009
testRenderBeginOnlyContent 0.011
testResolvePermissionsFromTemplateAvailability 0.008
testRenderCmsCommentsWhenBeeingInEditMode 0.017
testPostRender 0.006

TemplatingFunctionsTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 2.106
testInstallFrom4_4_6 1.351
updateFrom55 0.711

PageElementTest

testOutputContainsContent 0.005
testOutputContainsContentAndDialog 0.008
testOutputWithoutContent 0.007
testOutputwithoutDialog 0.007

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.098
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.01
testShowAddButtonWhenMaxComponentsIsNotReached 0.008
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.016
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.008
testRenderAreaWithActivationStatusModified 0.01
testRenderSimpleBarWithoutAreaNode 0.008
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.007
testRenderSimpleBar 0.011
testDontShowAddButtonWhenMaxComponentsIsReached 0.009
testCreateAreaNodeSetToFalse 0.008
testCreateAreaNodeSetToTrue 0.007
testDontShowBarWhenAreaIsHasNoComponentType 0.007
testRenderNoBar 0.007

PlainTextRendererTest

testRenderInPreview 0.101
testRender 0.009

TemplatingFunctionsMetaDataTest

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

AreaElementCanRenderAreaTest

test1 0.005
test2 0.006
test3 0.028
test4 0.006
test5 0.007
test6 0.006

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.012
testRenderSimpleBar 0.011
testRenderWithDialog 0.009
testRenderComponentWithActivationStatusPublished 0.012

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.008
testSetAttributesInWebContext 0.006
testGetTargetContent 0.007
testGetActivationStatus 0.006

Failure Details

[Summary] [Package List] [Test Cases]


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