Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.636
info.magnolia.templating.freemarker 26 0 0 0 100% 0.562
info.magnolia.templating.renderers 4 0 0 0 100% 0.779
info.magnolia.templating.functions 188 0 0 0 100% 1.071
info.magnolia.templating.inspector 20 0 0 0 100% 0.146
info.magnolia.templating.module.setup 2 0 0 0 100% 2.343
info.magnolia.templating.inheritance 8 0 0 0 100% 0.158

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.049
MarkupHelperTest 3 0 0 0 100% 0
AreaElementTest 27 0 0 0 100% 0.301
AbstractTemplateElementTest 8 0 0 2 75% 0.076
ComponentElementTest 10 0 0 0 100% 0.098
PageElementTest 4 0 0 0 100% 0.028
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.045
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.039

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.18
PageDirectiveTest 2 0 0 0 100% 0.024
AbstractDirectiveTest 2 0 0 0 100% 0.046
AreaDirectiveTest 14 0 0 0 100% 0.236
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.721
PlainTextRendererTest 2 0 0 0 100% 0.058

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.051
SiblingsHelperTest 6 0 0 0 100% 0.029
TemplatingFunctionsTest 151 0 0 0 100% 0.976
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.015

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.018
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.007
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.006

InspectorTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.023
testComponentInheritance 0.02
testPropertyInheritanceWithInheritanceDisabled 0.024
testDisabledPropertyInheritance 0.029
testMultiLevelPropertyInheritance 0.017
testDoesNothingOnTopLevelPage 0.016
testResourcesInheritance 0.015
testPropertyInheritance 0.014

TemplatingFunctionsI18nTest

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

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.165

AreaElementComponentsTest

testMaxComponentsNotSet 0.009
testShouldShowAddButtonTypeSingle 0.011
testMaxComponentsNotReached 0.009
testShouldShowAddButtonTypeNoComponent 0.009
testMaxComponentsReached 0.011

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AreaElementTest

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

NoScriptRendererTest

testRenderListOfComponents 0.662
testRenderSingleComponent 0.01

AbstractTemplateElementTest

testCurrentContent 0.012
testUsesDefaultBundleIfNotSpecified 0.015
testGetsCustomMessageCustomBundleWithPageTemplate 0.014
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.011
testDefaultMessageFromCustomBundleWithPageTemplate 0.011
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.011

PageDirectiveTest

testRenderWithContent 0.012
testRenderWithContentAndDialog 0.012

AbstractDirectiveTest

testInitContentComponent 0.004
testBodyCheck 0.042

SiblingsHelperTest

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

ComponentElementTest

testRenderBeginAll 0.01
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.008
testRenderBeginWithEditable 0.008
testDontRenderCmsCommentsInPreviewMode 0.008
testRenderWithoutComment 0.011
testResolvePermissionsFromTemplate 0.01
testRenderBeginOnlyContent 0.015
testResolvePermissionsFromTemplateAvailability 0.011
testRenderCmsCommentsWhenBeeingInEditMode 0.008
testPostRender 0.009

TemplatingFunctionsTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 1.635
updateFrom55 0.707

PageElementTest

testOutputContainsContent 0.006
testOutputContainsContentAndDialog 0.008
testOutputWithoutContent 0.007
testOutputwithoutDialog 0.007

AreaDirectiveTest

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

PlainTextRendererTest

testRenderInPreview 0.051
testRender 0.006

TemplatingFunctionsMetaDataTest

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

AreaElementCanRenderAreaTest

test1 0.007
test2 0.014
test3 0.001
test4 0.007
test5 0.008
test6 0.008

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.013
testRenderSimpleBar 0.01
testRenderWithDialog 0.011
testRenderComponentWithActivationStatusPublished 0.01

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.008
testSetAttributesInWebContext 0.01
testGetTargetContent 0.01
testGetActivationStatus 0.011

Failure Details

[Summary] [Package List] [Test Cases]


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