Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.449
info.magnolia.templating.freemarker 28 0 0 0 100% 0.478
info.magnolia.templating.renderers 4 0 0 0 100% 0.661
info.magnolia.templating.functions 188 0 0 0 100% 0.867
info.magnolia.templating.inspector 20 0 0 0 100% 0.087
info.magnolia.templating.module.setup 3 0 0 0 100% 2.919
info.magnolia.templating.inheritance 8 0 0 0 100% 0.123

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.019
AreaElementComponentsTest 5 0 0 0 100% 0.036
MarkupHelperTest 3 0 0 0 100% 0
AreaElementTest 27 0 0 0 100% 0.195
AbstractTemplateElementTest 8 0 0 2 75% 0.05
ComponentElementTest 10 0 0 0 100% 0.067
PageElementTest 4 0 0 0 100% 0.024
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.037
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.021

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
RenderableDefinitionModelTest 3 0 0 0 100% 0.032
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.143
InitDirectiveTest 2 0 0 0 100% 0.018
PageDirectiveTest 2 0 0 0 100% 0.019
AbstractDirectiveTest 2 0 0 0 100% 0.023
AreaDirectiveTest 14 0 0 0 100% 0.205
ComponentDirectiveTest 4 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.579
PlainTextRendererTest 2 0 0 0 100% 0.082

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.045
SiblingsHelperTest 6 0 0 0 100% 0.03
TemplatingFunctionsTest 151 0 0 0 100% 0.778
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.014

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.021
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.006
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.005

InspectorTest

dumpByte 0.028
dumpChar 0.011
dumpDate 0.003
dumpLong 0.002
dumpNode 0.009
dumpNull 0.002
dumpArray 0.003
dumpFloat 0.002
dumpShort 0.002
dumpSingleValueProperty 0.001
dumpCollection 0.003
dumpBoolean 0.001
dumpCalendar 0.002
dumpDouble 0.001
dumpObject 0.002
dumpString 0.002
dumpContentMap 0.006
dumpMultiValueProperty 0.003
dumpInteger 0.001
dumpMap 0.003

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.02
testComponentInheritance 0.016
testPropertyInheritanceWithInheritanceDisabled 0.016
testDisabledPropertyInheritance 0.015
testMultiLevelPropertyInheritance 0.014
testDoesNothingOnTopLevelPage 0.013
testResourcesInheritance 0.015
testPropertyInheritance 0.014

TemplatingFunctionsI18nTest

wrapNodeForI18n 0
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.006
wrapContentMapForI18n 0.005
localizedLinksContainLinksToLocales 0.011
checkCurrentLanguage 0.005
localizedLinksMaintainSelectors 0.006
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.006
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.006

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.143

InitDirectiveTest

testRenderWithContent 0.008
testRenderWithContentAndDialog 0.01

InitElementTest

testOutputContainsContent 0.004
testOutputContainsContentAndDialog 0.005
testOutputWithoutContent 0.005
testOutputwithoutDialog 0.005

AreaElementComponentsTest

testMaxComponentsNotSet 0.009
testShouldShowAddButtonTypeSingle 0.006
testMaxComponentsNotReached 0.006
testShouldShowAddButtonTypeNoComponent 0.007
testMaxComponentsReached 0.008

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AreaElementTest

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

NoScriptRendererTest

testRenderListOfComponents 0.571
testRenderSingleComponent 0.008

AbstractTemplateElementTest

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

PageDirectiveTest

testRenderWithContent 0.01
testRenderWithContentAndDialog 0.009

AbstractDirectiveTest

testInitContentComponent 0.005
testBodyCheck 0.018

SiblingsHelperTest

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

ComponentElementTest

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

TemplatingFunctionsTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 1.467
testInstallFrom4_4_6 0.907
updateFrom55 0.545

PageElementTest

testOutputContainsContent 0.006
testOutputContainsContentAndDialog 0.006
testOutputWithoutContent 0.006
testOutputwithoutDialog 0.006

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.086
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.009
testShowAddButtonWhenMaxComponentsIsNotReached 0.01
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.013
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.009
testRenderAreaWithActivationStatusModified 0.01
testRenderSimpleBarWithoutAreaNode 0.008
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.009
testRenderSimpleBar 0.009
testDontShowAddButtonWhenMaxComponentsIsReached 0.008
testCreateAreaNodeSetToFalse 0.009
testCreateAreaNodeSetToTrue 0.009
testDontShowBarWhenAreaIsHasNoComponentType 0.008
testRenderNoBar 0.008

PlainTextRendererTest

testRenderInPreview 0.069
testRender 0.013

TemplatingFunctionsMetaDataTest

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

AreaElementCanRenderAreaTest

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

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.012
testRenderSimpleBar 0.009
testRenderWithDialog 0.008
testRenderComponentWithActivationStatusPublished 0.009

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.005
testSetAttributesInWebContext 0.006
testGetTargetContent 0.005
testGetActivationStatus 0.005

Failure Details

[Summary] [Package List] [Test Cases]


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