Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 0.419
info.magnolia.templating.freemarker 26 0 0 0 100% 0.443
info.magnolia.templating.renderers 4 0 0 0 100% 0.693
info.magnolia.templating.functions 188 0 0 0 100% 0.722
info.magnolia.templating.inspector 20 0 0 0 100% 0.131
info.magnolia.templating.module.setup 3 0 0 0 100% 2.564
info.magnolia.templating.inheritance 8 0 0 0 100% 0.105

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.035
MarkupHelperTest 3 0 0 0 100% 0.001
AreaElementTest 27 0 0 0 100% 0.188
AbstractTemplateElementTest 8 0 0 2 75% 0.049
ComponentElementTest 10 0 0 0 100% 0.067
PageElementTest 4 0 0 0 100% 0.022
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.035
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.022

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
RenderableDefinitionModelTest 3 0 0 0 100% 0.027
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.143
PageDirectiveTest 2 0 0 0 100% 0.019
AbstractDirectiveTest 2 0 0 0 100% 0.022
AreaDirectiveTest 14 0 0 0 100% 0.199
ComponentDirectiveTest 4 0 0 0 100% 0.033

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.616
PlainTextRendererTest 2 0 0 0 100% 0.077

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.039
SiblingsHelperTest 6 0 0 0 100% 0.021
TemplatingFunctionsTest 151 0 0 0 100% 0.648
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.131

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.018
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.005
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.004

InspectorTest

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

DefaultInheritanceContentDecoratorTest

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

TemplatingFunctionsI18nTest

wrapNodeForI18n 0
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.003
wrapContentMapForI18n 0.004
localizedLinksContainLinksToLocales 0.009
checkCurrentLanguage 0.006
localizedLinksMaintainSelectors 0.005
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.005
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.005

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.143

AreaElementComponentsTest

testMaxComponentsNotSet 0.009
testShouldShowAddButtonTypeSingle 0.005
testMaxComponentsNotReached 0.007
testShouldShowAddButtonTypeNoComponent 0.005
testMaxComponentsReached 0.009

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AreaElementTest

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

NoScriptRendererTest

testRenderListOfComponents 0.452
testRenderSingleComponent 0.008

AbstractTemplateElementTest

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

PageDirectiveTest

testRenderWithContent 0.01
testRenderWithContentAndDialog 0.009

AbstractDirectiveTest

testInitContentComponent 0.004
testBodyCheck 0.018

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.003
testCanTellPosition 0.004
testCanTellIfFirstWhenInitializingWithFirst 0.003
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.004
testCanTellIfLastWhenInitializingWith 0.004
testCanTellIfLastAfterNavigating 0.003

ComponentElementTest

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

TemplatingFunctionsTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 1.385
testInstallFrom4_4_6 0.728
updateFrom55 0.451

PageElementTest

testOutputContainsContent 0.004
testOutputContainsContentAndDialog 0.006
testOutputWithoutContent 0.006
testOutputwithoutDialog 0.004

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.09
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.01
testShowAddButtonWhenMaxComponentsIsNotReached 0.008
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.012
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.008
testRenderAreaWithActivationStatusModified 0.008
testRenderSimpleBarWithoutAreaNode 0.008
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.008
testRenderSimpleBar 0.008
testDontShowAddButtonWhenMaxComponentsIsReached 0.008
testCreateAreaNodeSetToFalse 0.009
testCreateAreaNodeSetToTrue 0.008
testDontShowBarWhenAreaIsHasNoComponentType 0.007
testRenderNoBar 0.007

PlainTextRendererTest

testRenderInPreview 0.069
testRender 0.007

TemplatingFunctionsMetaDataTest

testDeprecatedActivatorId 0.01
testDeprecatedActivated 0
testDeprecatedLastAction 0
testDeprecatedTemplate 0
testLastModified 0.001
testTemplate 0
testDeprecatedTitle 0
testActivationStatus 0
testLastModifiedBy 0
testDeprecatedCreationDate 0.001
testLastActivated 0
testDeletedBy 0
testUnknownPropertyThrowsException 0
testCreated 0
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.011
test3 0.002
test4 0.004
test5 0.005
test6 0.005

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.009
testRenderSimpleBar 0.007
testRenderWithDialog 0.008
testRenderComponentWithActivationStatusPublished 0.008

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.005
testSetAttributesInWebContext 0.006
testGetTargetContent 0.006
testGetActivationStatus 0.005

Failure Details

[Summary] [Package List] [Test Cases]


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