Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
251 0 0 4 98.406% 7.524

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.freemarker 23 0 0 0 100% 1.109
info.magnolia.templating.module.setup 1 0 0 0 100% 3.195
info.magnolia.templating.functions 151 0 0 0 100% 1.011
info.magnolia.templating.elements 64 0 0 4 93.75% 1.636
info.magnolia.templating.renderers 4 0 0 0 100% 0.046
info.magnolia.templating.inheritance 8 0 0 0 100% 0.527

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
AbstractDirectiveTest 2 0 0 0 100% 0.043
AreaDirectiveTest 12 0 0 0 100% 0.862
ComponentDirectiveTest 2 0 0 0 100% 0.057
InitDirectiveTest 3 0 0 0 100% 0.077
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.025
RenderableDefinitionModelTest 3 0 0 0 100% 0.045

info.magnolia.templating.module.setup

Class Tests Errors Failures Skipped Success Rate Time
TemplatingModuleVersionHandlerTest 1 0 0 0 100% 3.195

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsMetaDataTest 22 0 0 0 100% 0.008
TemplatingFunctionsTest 129 0 0 0 100% 1.003

info.magnolia.templating.elements

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentTemplatingElementTest 3 0 0 0 100% 0.612
AbstractTemplateElementTest 8 0 0 2 75% 0.183
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.136
AreaElementComponentsTest 5 0 0 0 100% 0.101
AreaElementTest 22 0 0 0 100% 0.42
ComponentElementTest 10 0 0 0 100% 0.125
InitElementTest 7 0 0 2 71.429% 0.059
MarkupHelperTest 3 0 0 0 100% 0

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.024
PlainTextRendererTest 2 0 0 0 100% 0.022

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.577
testSetAttributesInWebContext 0.017
testGetTargetContent 0.018

AbstractTemplateElementTest

testCurrentContent 0.034
testUsesDefaultBundleIfNotSpecified 0.073
testGetsCustomMessageCustomBundleWithPageTemplate 0.02
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.021
testDefaultMessageFromCustomBundleWithPageTemplate 0.018
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.017

AreaElementCanRenderAreaTest

test1 0.03
test2 0.024
test3 0.023
test4 0.015
test5 0.028
test6 0.016

AreaElementComponentsTest

testMaxComponentsNotSet 0.024
testShouldShowAddButtonTypeSingle 0.016
testMaxComponentsNotReached 0.021
testShouldShowAddButtonTypeNoComponent 0.02
testMaxComponentsReached 0.02

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.018
testBeginWithEditable 0.016
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.013
testEndWithAllowedInheritButNullInheritConfig 0.016
testEndWithConfFromTemplateDefinition 0.015
testBeginCreateNodeArea 0.015
testDontRenderCmsCommentsInPreviewMode 0.02
testBeginSimple 0.014
testUseAreaI18nBaseNameIfPossible 0.021
testDoNotFailOnNPEDuringCanRenderAreaScript 0.092
testSingleAreaWithMoreComponentsShouldNotFail 0.014
testBeginWithInheritence 0.015
testResolveTemplateDefinitionConsidersVariation 0.017
testTryToCreateAreaNode 0.016
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.015
testBeginWithCreateAreaNodeAttribute 0.016
testAvailableComponentsForSuperuser 0.017
testRenderCmsCommentsWhenBeeingInEditMode 0.013
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.012
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.013
testBeginGetContentFromParent 0.013
testAvailableComponentsForEditor 0.019

ComponentElementTest

testRenderBeginAll 0.019
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.014
testRenderBeginWithEditable 0.012
testDontRenderCmsCommentsInPreviewMode 0.011
testRenderWithoutComment 0.01
testResolvePermissionsFromTemplate 0.013
testRenderBeginOnlyContent 0.011
testResolvePermissionsFromTemplateAvailability 0.012
testRenderCmsCommentsWhenBeeingInEditMode 0.012
testPostRender 0.011

InitElementTest

testOutputEndPart 0.017
testOutputContainsContent 0.011
testOutputContainsGwtLocaleMetaProperty 0.01
testOutputContainsContentAndDialog 0.01
testOutputContainsPageEditorStyles 0
See SCRUM-1239. Will most likely be removed in 5.0
testOutputContainsPageEditorJavascript 0
See SCRUM-1239. Will most likely be removed in 5.0
testOutputWithoutContent 0.011

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AbstractDirectiveTest

testInitContentComponent 0.012
testBodyCheck 0.031

AreaDirectiveTest

testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.508
testShowAddButtonWhenMaxComponentsIsNotReached 0.035
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.034
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.035
testRenderSimpleBarWithoutAreaNode 0.049
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.031
testRenderSimpleBar 0.031
testDontShowAddButtonWhenMaxComponentsIsReached 0.028
testCreateAreaNodeSetToFalse 0.029
testCreateAreaNodeSetToTrue 0.029
testDontShowBarWhenAreaIsHasNoComponentType 0.028
testRenderNoBar 0.025

ComponentDirectiveTest

testRenderSimpleBar 0.027
testRenderWithDialog 0.03

InitDirectiveTest

testRenderWithContent 0.025
testRenderWithContentAndDialog 0.029
testRenderSimpleBar 0.023

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.025

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.027
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.009
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.009

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

testExternalLinkFromNodeNoProtocol 0.01
testNonExistingInheritedRelPathShouldReturnNull 0.011
testAncestorsFromContentMapDepth1 0.007
testPageFromComponentNodeDepth2 0.007
testPageFromComponentNodeDepth3 0.007
testGetNodeByPath 0.008
testIsAuthorInstanceTrue 0.008
testConfiguredInheritance 0.01
testRootPageFromPageContentMapDepth1 0.009
testRootPageFromPageContentMapDepth2 0.008
testRootPageFromPageContentMapDepth3 0.008
testGetNodeById 0.009
testLinkForIdentifierFromNodeDepth1 0.009
testLinkForIdentifierFromNodeDepth2 0.009
testParentComponentFromPageNode 0.009
testAsContentMapList 0.01
testLinkFromContentMapDepth1 0.015
testLinkFromContentMapDepth2 0.01
testAncestorPagesFromComponentNodeDepth4 0.009
testPageContentMapHavingNoParentPageShouldBeNull 0.009
testEncodeNode 0.012
testPageFromNodeDepth1 0.01
testPageFromNodeDepth2 0.009
testGetQueryStringAndFragmentOnlyQuery 0.01
testIsEditModeAuthorAndPreview 0.008
testPageFromRootShouldBeNull 0.009
testAncestorsFromNodeDepth1 0.009
testExternalLinkTitleFromContentMapWithTitle 0.008
testAncestorsFromComponentNodeDepth2 0.012
testAncestorPagesFromComponentContentMapDepth4 0.01
testLanguage 0.008
testParentFromRootNodeShouldBeNull 0.008
testGetQueryStringAndFragmentSimpleOnlyFragment 0.009
testEncodeContent 0.01
testIsEditModeAuthorAndNotPreview 0.008
testAsContentMapfromNode 0.017
testRootPageFromPageNodeDepth1 0.007
testRootPageFromPageNodeDepth2 0.007
testRootPageFromPageNodeDepth3 0.007
testChildrenFromNode 0.012
testSiblingsContentMap 0.007
testPageContentMapFromRootShouldBeNull 0.007
testIsAuthorInstanceFalse 0.007
testLinkForPropertyFromNodeDepth1 0.007
testLinkForPropertyFromNodeDepth2 0.007
testAncestorsFromComponentContentMapDepth2 0.008
testGetQueryStringAndFragmentSimple 0.007
testGetContentByPathWithQuerystring 0.007
testIsEditModeNotAuthorAndNotPreview 0.007
testAncestorPagesFromSubComponentNodeDepth5 0.007
testRootFromPageContentMapDepth1 0.007
testRootFromPageContentMapDepth2 0.007
testRootFromPageContentMapDepth3 0.008
testChildrenFromNodeAndTypePage 0.007
testExternalLinkTitleFromNodeNoTitleSet 0.007
testRootFromComponentNodeDepth1 0.006
testRootFromComponentNodeDepth2 0.006
testAncestorPagesFromSubComponentConentMapDepth5 0.007
testGetContentByIdentifier 0.007
testNodeIsInherited 0.009
testCreateHtmlAttributeNoValue 0.007
testInheritFromContentMapOnlyContentMap 0.007
testPageHavingNoParentPageShouldBeNull 0.007
testParentPageFromPageContentMap 0.007
testChildrenFromContentMapAndTypeComponent 0.007
testExternalLinkTitleFromNodeWithTitle 0.007
testAncestorsFromSubComponentConentMapDepth5 0.008
testRootPageFromComponentNodeDepth1 0.007
testRootPageFromComponentNodeDepth2 0.008
testParentComponentFromPageContentMap 0.007
testParentPageFromPageNode 0.007
testRootPageFromComponentContentMapDepth1 0.007
testRootPageFromComponentContentMapDepth2 0.007
testAncestorPagesFromNodeDepth1 0.007
testGetQueryStringAndFragmentBoth 0.007
testAncestorPagesFromContentMapDepth1 0.007
testParentFromRootContentMapShouldBeNull 0.007
testParentPageFromComponentNodeDepth1 0.006
testParentPageFromComponentNodeDepth2 0.007
testParentPageFromComponentNodeDepth3 0.007
testRootFromPageNodeDepth1 0.007
testRootFromPageNodeDepth2 0.007
testRootFromPageNodeDepth3 0.007
testGetNodeByPathWithQuerystring 0.007
testExternalLinkTitleFromContentMapNoTitleSet 0.007
testSiblings 0.006
testInheritFromNode 0.007
testInheritFromContentMap 0.007
testContentMapIsInherited 0.008
testIsEditModeNotAuthorAndPreview 0.007
testInheritFromNodeOnlyContent 0.007
testAncestorsFromSubComponentNodeDepth5 0.007
testChildrenFromContentMapAndTypePage 0.007
testParentFromNodeDepth1 0.006
testParentFromNodeDepth2 0.007
testParentPageFromContentMapDepth1 0.007
testAsNodeList 0.008
testParentPageFromComponentContentMapDepth1 0.007
testParentPageFromComponentContentMapDepth2 0.015
testParentPageFromComponentContentMapDepth3 0.008
testInheritedNodeIsUnwrapped 0.007
testCreateHtmlAttribute 0.007
testContentMapIsFromCurrentPage 0.008
testGetContentByPath 0.007
testPageFromComponentContentMapDepth2 0.007
testPageFromComponentContentMapDepth3 0.008
testPageFromContentMapDepth1 0.007
testPageFromContentMapDepth2 0.008
testParentFromContentMapDepth1 0.007
testParentFromContentMapDepth2 0.007
testIsPublicInstanceTrue 0.006
testAsJCRNodeFromContentMap 0.006
testExternalLinkFromContentMapNoProtocol 0.007
testChildrenFromNodeAndTypeComponent 0.006
testNonExistingInheritedPropertyShouldReturnNull 0.007
testExternalLinkFromNodeWithProtocol 0.007
testInheritFromNodeNoContent 0.007
testExternalLinkFromContentMapWithProtocol 0.007
testIsPreviewModeTrue 0.006
testRootFromComponentContentMapDepth1 0.006
testRootFromComponentContentMapDepth2 0.007
testLinkFromNodeDepth1 0.007
testLinkFromNodeDepth2 0.007
testChildrenFromContentMap 0.007
testIsPreviewModeFalse 0.007
testIsPublicInstanceFalse 0.007
testGetContentById 0.006
testParentPageFromNodeDepth1 0.006
testNodeIsFromCurrentPage 0.007

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.232
testComponentInheritance 0.046
testPropertyInheritanceWithInheritanceDisabled 0.041
testDisabledPropertyInheritance 0.043
testMultiLevelPropertyInheritance 0.042
testDoesNothingOnTopLevelPage 0.04
testResourcesInheritance 0.038
testPropertyInheritance 0.045

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 3.195

NoScriptRendererTest

testRenderListOfComponents 0.014
testRenderSingleComponent 0.01

PlainTextRendererTest

testRenderInPreview 0.014
testRender 0.008

Failure Details

[Summary] [Package List] [Test Cases]


testUsesDefaultBundleIfNoMetadata
skipped: TODO: check expectation here
testUsesDefaultBundleIfNotRenderableDefinition
skipped: TODO: check expectation here
testOutputContainsPageEditorStyles
skipped: See SCRUM-1239. Will most likely be removed in 5.0
testOutputContainsPageEditorJavascript
skipped: See SCRUM-1239. Will most likely be removed in 5.0