Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
315 0 0 2 99.365% 6.578

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.041
info.magnolia.templating.freemarker 26 0 0 0 100% 0.505
info.magnolia.templating.renderers 4 0 0 0 100% 1.086
info.magnolia.templating.functions 188 0 0 0 100% 1.186
info.magnolia.templating.inspector 20 0 0 0 100% 0.17
info.magnolia.templating.module.setup 2 0 0 0 100% 2.59
info.magnolia.templating.inheritance 8 0 0 0 100% 0

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
MarkupHelperTest 3 0 0 0 100% 0
AreaElementTest 27 0 0 0 100% 0.767
AbstractTemplateElementTest 8 0 0 2 75% 0.076
ComponentElementTest 10 0 0 0 100% 0.074
PageElementTest 4 0 0 0 100% 0
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.092
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.032

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
RenderableDefinitionModelTest 3 0 0 0 100% 0.034
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.156
PageDirectiveTest 2 0 0 0 100% 0.023
AbstractDirectiveTest 2 0 0 0 100% 0.03
AreaDirectiveTest 14 0 0 0 100% 0.214
ComponentDirectiveTest 4 0 0 0 100% 0.048

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 1.022
PlainTextRendererTest 2 0 0 0 100% 0.064

info.magnolia.templating.functions

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

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

Class Tests Errors Failures Skipped Success Rate Time
TemplatingModuleVersionHandlerTest 2 0 0 0 100% 2.59

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.02
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.006
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.008

InspectorTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0
testComponentInheritance 0
testPropertyInheritanceWithInheritanceDisabled 0
testDisabledPropertyInheritance 0
testMultiLevelPropertyInheritance 0
testDoesNothingOnTopLevelPage 0
testResourcesInheritance 0
testPropertyInheritance 0

TemplatingFunctionsI18nTest

wrapNodeForI18n 0
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0
wrapContentMapForI18n 0
localizedLinksContainLinksToLocales 0
checkCurrentLanguage 0
localizedLinksMaintainSelectors 0
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.001

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.156

AreaElementComponentsTest

testMaxComponentsNotSet 0
testShouldShowAddButtonTypeSingle 0
testMaxComponentsNotReached 0
testShouldShowAddButtonTypeNoComponent 0
testMaxComponentsReached 0

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.012
dontCreateAreaNodeWhenNodeIsProtected 0.011
testBeginWithEditable 0.025
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.008
testEndWithAllowedInheritButNullInheritConfig 0.014
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.005
testEndWithConfFromTemplateDefinition 0.01
testBeginCreateNodeArea 0.01
testDontRenderCmsCommentsInPreviewMode 0.01
testBeginSimple 0.008
testUseAreaI18nBaseNameIfPossible 0.011
testDoNotFailOnNPEDuringCanRenderAreaScript 0.639
testSingleAreaWithMoreComponentsShouldNotFail 0
testBeginWithInheritence 0
testResolveTemplateDefinitionConsidersVariation 0
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0
testBeginWithCreateAreaNodeAttribute 0
testAvailableComponentsForSuperuser 0
testRenderCmsCommentsWhenBeeingInEditMode 0
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0
testBeginGetContentFromParent 0
tryToCreateAreaNode 0
testAvailableComponentsForEditor 0

NoScriptRendererTest

testRenderListOfComponents 0.96
testRenderSingleComponent 0.01

AbstractTemplateElementTest

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

PageDirectiveTest

testRenderWithContent 0.011
testRenderWithContentAndDialog 0.011

AbstractDirectiveTest

testInitContentComponent 0.007
testBodyCheck 0.023

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.003
testCanTellPosition 0.005
testCanTellIfFirstWhenInitializingWithFirst 0.005
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.005
testCanTellIfLastWhenInitializingWith 0.005
testCanTellIfLastAfterNavigating 0.005

ComponentElementTest

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

TemplatingFunctionsTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 1.676
updateFrom55 0.913

PageElementTest

testOutputContainsContent 0
testOutputContainsContentAndDialog 0
testOutputWithoutContent 0
testOutputwithoutDialog 0

AreaDirectiveTest

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

PlainTextRendererTest

testRenderInPreview 0.057
testRender 0.007

TemplatingFunctionsMetaDataTest

testDeprecatedActivatorId 0
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
nonExistingPropertyDoesNotThrowNPE 0
testVersionableComment 0
testDeprecatedAuthorId 0
testCreatedBy 0
testDeletedComment 0
testDeprecatedTemplateType 0

AreaElementCanRenderAreaTest

test1 0
test2 0.092
test3 0
test4 0
test5 0
test6 0

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.014
testRenderSimpleBar 0.014
testRenderWithDialog 0.011
testRenderComponentWithActivationStatusPublished 0.009

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.007
testSetAttributesInWebContext 0.008
testGetTargetContent 0.009
testGetActivationStatus 0.008

Failure Details

[Summary] [Package List] [Test Cases]


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