Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
316 0 0 2 99.367% 9.957

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 67 0 0 2 97.015% 1.031
info.magnolia.templating.freemarker 26 0 0 0 100% 0.973
info.magnolia.templating.renderers 4 0 0 0 100% 0.899
info.magnolia.templating.functions 188 0 0 0 100% 1.2
info.magnolia.templating.inspector 20 0 0 0 100% 0.249
info.magnolia.templating.module.setup 3 0 0 0 100% 5.36
info.magnolia.templating.inheritance 8 0 0 0 100% 0.245

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
AreaElementComponentsTest 5 0 0 0 100% 0.101
MarkupHelperTest 3 0 0 0 100% 0
AreaElementTest 27 0 0 0 100% 0.481
AbstractTemplateElementTest 8 0 0 2 75% 0.102
ComponentElementTest 10 0 0 0 100% 0.152
PageElementTest 4 0 0 0 100% 0.043
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.084
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.068

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
RenderableDefinitionModelTest 3 0 0 0 100% 0.048
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.265
PageDirectiveTest 2 0 0 0 100% 0.047
AbstractDirectiveTest 2 0 0 0 100% 0.046
AreaDirectiveTest 14 0 0 0 100% 0.482
ComponentDirectiveTest 4 0 0 0 100% 0.085

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.769
PlainTextRendererTest 2 0 0 0 100% 0.13

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.066
SiblingsHelperTest 6 0 0 0 100% 0.042
TemplatingFunctionsTest 151 0 0 0 100% 1.064
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.028

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.033
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.006
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.009

InspectorTest

dumpByte 0.078
dumpChar 0.033
dumpDate 0.007
dumpLong 0.006
dumpNode 0.019
dumpNull 0.006
dumpArray 0.007
dumpFloat 0.006
dumpShort 0.004
dumpSingleValueProperty 0.004
dumpCollection 0.007
dumpBoolean 0.004
dumpCalendar 0.003
dumpDouble 0.003
dumpObject 0.009
dumpString 0.021
dumpContentMap 0.025
dumpMultiValueProperty 0
dumpInteger 0.002
dumpMap 0.005

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.047
testComponentInheritance 0.031
testPropertyInheritanceWithInheritanceDisabled 0.031
testDisabledPropertyInheritance 0.035
testMultiLevelPropertyInheritance 0.03
testDoesNothingOnTopLevelPage 0.024
testResourcesInheritance 0.026
testPropertyInheritance 0.021

TemplatingFunctionsI18nTest

wrapNodeForI18n 0
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.006
wrapContentMapForI18n 0.008
localizedLinksContainLinksToLocales 0.016
checkCurrentLanguage 0.012
localizedLinksMaintainSelectors 0.007
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.009
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.008

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.265

AreaElementComponentsTest

testMaxComponentsNotSet 0.022
testShouldShowAddButtonTypeSingle 0.01
testMaxComponentsNotReached 0.026
testShouldShowAddButtonTypeNoComponent 0.025
testMaxComponentsReached 0.018

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AreaElementTest

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

NoScriptRendererTest

testRenderListOfComponents 0.756
testRenderSingleComponent 0.013

AbstractTemplateElementTest

testCurrentContent 0.017
testUsesDefaultBundleIfNotSpecified 0.03
testGetsCustomMessageCustomBundleWithPageTemplate 0.015
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.016
testDefaultMessageFromCustomBundleWithPageTemplate 0.015
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.009

PageDirectiveTest

testRenderWithContent 0.029
testRenderWithContentAndDialog 0.018

AbstractDirectiveTest

testInitContentComponent 0.014
testBodyCheck 0.032

SiblingsHelperTest

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

ComponentElementTest

testRenderBeginAll 0.015
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.012
testRenderBeginWithEditable 0.017
testDontRenderCmsCommentsInPreviewMode 0.015
testRenderWithoutComment 0.019
testResolvePermissionsFromTemplate 0.015
testRenderBeginOnlyContent 0.023
testResolvePermissionsFromTemplateAvailability 0.014
testRenderCmsCommentsWhenBeeingInEditMode 0.013
testPostRender 0.009

TemplatingFunctionsTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 2.628
testInstallFrom4_4_6 1.773
updateFrom55 0.959

PageElementTest

testOutputContainsContent 0.011
testOutputContainsContentAndDialog 0.013
testOutputWithoutContent 0.01
testOutputwithoutDialog 0.009

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.284
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.016
testShowAddButtonWhenMaxComponentsIsNotReached 0.014
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.023
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.015
testRenderAreaWithActivationStatusModified 0.015
testRenderSimpleBarWithoutAreaNode 0.015
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.012
testRenderSimpleBar 0.011
testDontShowAddButtonWhenMaxComponentsIsReached 0.021
testCreateAreaNodeSetToFalse 0.017
testCreateAreaNodeSetToTrue 0.015
testDontShowBarWhenAreaIsHasNoComponentType 0.013
testRenderNoBar 0.011

PlainTextRendererTest

testRenderInPreview 0.116
testRender 0.014

TemplatingFunctionsMetaDataTest

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

AreaElementCanRenderAreaTest

test1 0.015
test2 0.015
test3 0.008
test4 0.017
test5 0.016
test6 0.013

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.025
testRenderSimpleBar 0.017
testRenderWithDialog 0.024
testRenderComponentWithActivationStatusPublished 0.019

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.013
testSetAttributesInWebContext 0.014
testGetTargetContent 0.013
testGetActivationStatus 0.028

Failure Details

[Summary] [Package List] [Test Cases]


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