Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 4.009
info.magnolia.templating.module.setup 1 0 0 0 100% 12.071
info.magnolia.templating.functions 151 0 0 0 100% 3.563
info.magnolia.templating.elements 64 0 0 4 93.75% 3.818
info.magnolia.templating.renderers 4 0 0 0 100% 0.097
info.magnolia.templating.inheritance 8 0 0 0 100% 1.922

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.129
AreaDirectiveTest 12 0 0 0 100% 2.915
ComponentDirectiveTest 2 0 0 0 100% 0.364
InitDirectiveTest 3 0 0 0 100% 0.32
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.106
RenderableDefinitionModelTest 3 0 0 0 100% 0.175

info.magnolia.templating.module.setup

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

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsMetaDataTest 22 0 0 0 100% 0.033
TemplatingFunctionsTest 129 0 0 0 100% 3.53

info.magnolia.templating.elements

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentTemplatingElementTest 3 0 0 0 100% 1.146
AbstractTemplateElementTest 8 0 0 2 75% 0.312
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.226
AreaElementComponentsTest 5 0 0 0 100% 0.243
AreaElementTest 22 0 0 0 100% 1.417
ComponentElementTest 10 0 0 0 100% 0.345
InitElementTest 7 0 0 2 71.429% 0.129
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.043
PlainTextRendererTest 2 0 0 0 100% 0.054

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 1.084
testSetAttributesInWebContext 0.03
testGetTargetContent 0.032

AbstractTemplateElementTest

testCurrentContent 0.05
testUsesDefaultBundleIfNotSpecified 0.133
testGetsCustomMessageCustomBundleWithPageTemplate 0.034
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.038
testDefaultMessageFromCustomBundleWithPageTemplate 0.029
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.028

AreaElementCanRenderAreaTest

test1 0.052
test2 0.043
test3 0.022
test4 0.041
test5 0.039
test6 0.029

AreaElementComponentsTest

testMaxComponentsNotSet 0.047
testShouldShowAddButtonTypeSingle 0.025
testMaxComponentsNotReached 0.03
testShouldShowAddButtonTypeNoComponent 0.102
testMaxComponentsReached 0.039

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.042
testBeginWithEditable 0.035
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.044
testEndWithAllowedInheritButNullInheritConfig 0.057
testEndWithConfFromTemplateDefinition 0.045
testBeginCreateNodeArea 0.073
testDontRenderCmsCommentsInPreviewMode 0.02
testBeginSimple 0.062
testUseAreaI18nBaseNameIfPossible 0.071
testDoNotFailOnNPEDuringCanRenderAreaScript 0.377
testSingleAreaWithMoreComponentsShouldNotFail 0.028
testBeginWithInheritence 0.067
testResolveTemplateDefinitionConsidersVariation 0.074
testTryToCreateAreaNode 0.044
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.027
testBeginWithCreateAreaNodeAttribute 0.031
testAvailableComponentsForSuperuser 0.098
testRenderCmsCommentsWhenBeeingInEditMode 0.029
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.032
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.089
testBeginGetContentFromParent 0.041
testAvailableComponentsForEditor 0.031

ComponentElementTest

testRenderBeginAll 0.022
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.057
testRenderBeginWithEditable 0.034
testDontRenderCmsCommentsInPreviewMode 0.037
testRenderWithoutComment 0.018
testResolvePermissionsFromTemplate 0.028
testRenderBeginOnlyContent 0.034
testResolvePermissionsFromTemplateAvailability 0.029
testRenderCmsCommentsWhenBeeingInEditMode 0.049
testPostRender 0.037

InitElementTest

testOutputEndPart 0.019
testOutputContainsContent 0.025
testOutputContainsGwtLocaleMetaProperty 0.042
testOutputContainsContentAndDialog 0.031
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.012

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AbstractDirectiveTest

testInitContentComponent 0.036
testBodyCheck 0.093

AreaDirectiveTest

testDontShowAddButtonWhenMaxComponentsInParameterIsReached 1.597
testShowAddButtonWhenMaxComponentsIsNotReached 0.1
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.125
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.087
testRenderSimpleBarWithoutAreaNode 0.162
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.135
testRenderSimpleBar 0.094
testDontShowAddButtonWhenMaxComponentsIsReached 0.117
testCreateAreaNodeSetToFalse 0.123
testCreateAreaNodeSetToTrue 0.231
testDontShowBarWhenAreaIsHasNoComponentType 0.072
testRenderNoBar 0.072

ComponentDirectiveTest

testRenderSimpleBar 0.191
testRenderWithDialog 0.173

InitDirectiveTest

testRenderWithContent 0.083
testRenderWithContentAndDialog 0.14
testRenderSimpleBar 0.097

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.106

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.098
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.042
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.035

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

testExternalLinkFromNodeNoProtocol 0.012
testNonExistingInheritedRelPathShouldReturnNull 0.025
testAncestorsFromContentMapDepth1 0.033
testPageFromComponentNodeDepth2 0.014
testPageFromComponentNodeDepth3 0.012
testGetNodeByPath 0.027
testIsAuthorInstanceTrue 0.067
testConfiguredInheritance 0.036
testRootPageFromPageContentMapDepth1 0.021
testRootPageFromPageContentMapDepth2 0.025
testRootPageFromPageContentMapDepth3 0.054
testGetNodeById 0.014
testLinkForIdentifierFromNodeDepth1 0.048
testLinkForIdentifierFromNodeDepth2 0.024
testParentComponentFromPageNode 0.06
testAsContentMapList 0.02
testLinkFromContentMapDepth1 0.025
testLinkFromContentMapDepth2 0.04
testAncestorPagesFromComponentNodeDepth4 0.019
testPageContentMapHavingNoParentPageShouldBeNull 0.041
testEncodeNode 0.034
testPageFromNodeDepth1 0.013
testPageFromNodeDepth2 0.034
testGetQueryStringAndFragmentOnlyQuery 0.034
testIsEditModeAuthorAndPreview 0.025
testPageFromRootShouldBeNull 0.017
testAncestorsFromNodeDepth1 0.012
testExternalLinkTitleFromContentMapWithTitle 0.042
testAncestorsFromComponentNodeDepth2 0.019
testAncestorPagesFromComponentContentMapDepth4 0.034
testLanguage 0.051
testParentFromRootNodeShouldBeNull 0.028
testGetQueryStringAndFragmentSimpleOnlyFragment 0.037
testEncodeContent 0.056
testIsEditModeAuthorAndNotPreview 0.021
testAsContentMapfromNode 0.028
testRootPageFromPageNodeDepth1 0.026
testRootPageFromPageNodeDepth2 0.029
testRootPageFromPageNodeDepth3 0.018
testChildrenFromNode 0.039
testSiblingsContentMap 0.022
testPageContentMapFromRootShouldBeNull 0.036
testIsAuthorInstanceFalse 0.027
testLinkForPropertyFromNodeDepth1 0.02
testLinkForPropertyFromNodeDepth2 0.025
testAncestorsFromComponentContentMapDepth2 0.029
testGetQueryStringAndFragmentSimple 0.021
testGetContentByPathWithQuerystring 0.031
testIsEditModeNotAuthorAndNotPreview 0.019
testAncestorPagesFromSubComponentNodeDepth5 0.027
testRootFromPageContentMapDepth1 0.03
testRootFromPageContentMapDepth2 0.035
testRootFromPageContentMapDepth3 0.015
testChildrenFromNodeAndTypePage 0.021
testExternalLinkTitleFromNodeNoTitleSet 0.025
testRootFromComponentNodeDepth1 0.023
testRootFromComponentNodeDepth2 0.049
testAncestorPagesFromSubComponentConentMapDepth5 0.011
testGetContentByIdentifier 0.018
testNodeIsInherited 0.026
testCreateHtmlAttributeNoValue 0.011
testInheritFromContentMapOnlyContentMap 0.039
testPageHavingNoParentPageShouldBeNull 0.019
testParentPageFromPageContentMap 0.024
testChildrenFromContentMapAndTypeComponent 0.013
testExternalLinkTitleFromNodeWithTitle 0.02
testAncestorsFromSubComponentConentMapDepth5 0.06
testRootPageFromComponentNodeDepth1 0.019
testRootPageFromComponentNodeDepth2 0.026
testParentComponentFromPageContentMap 0.025
testParentPageFromPageNode 0.036
testRootPageFromComponentContentMapDepth1 0.016
testRootPageFromComponentContentMapDepth2 0.025
testAncestorPagesFromNodeDepth1 0.018
testGetQueryStringAndFragmentBoth 0.021
testAncestorPagesFromContentMapDepth1 0.011
testParentFromRootContentMapShouldBeNull 0.035
testParentPageFromComponentNodeDepth1 0.026
testParentPageFromComponentNodeDepth2 0.013
testParentPageFromComponentNodeDepth3 0.012
testRootFromPageNodeDepth1 0.03
testRootFromPageNodeDepth2 0.031
testRootFromPageNodeDepth3 0.012
testGetNodeByPathWithQuerystring 0.018
testExternalLinkTitleFromContentMapNoTitleSet 0.011
testSiblings 0.026
testInheritFromNode 0.02
testInheritFromContentMap 0.058
testContentMapIsInherited 0.022
testIsEditModeNotAuthorAndPreview 0.01
testInheritFromNodeOnlyContent 0.024
testAncestorsFromSubComponentNodeDepth5 0.074
testChildrenFromContentMapAndTypePage 0.022
testParentFromNodeDepth1 0.021
testParentFromNodeDepth2 0.027
testParentPageFromContentMapDepth1 0.024
testAsNodeList 0.024
testParentPageFromComponentContentMapDepth1 0.024
testParentPageFromComponentContentMapDepth2 0.041
testParentPageFromComponentContentMapDepth3 0.052
testInheritedNodeIsUnwrapped 0.019
testCreateHtmlAttribute 0.054
testContentMapIsFromCurrentPage 0.019
testGetContentByPath 0.026
testPageFromComponentContentMapDepth2 0.026
testPageFromComponentContentMapDepth3 0.024
testPageFromContentMapDepth1 0.029
testPageFromContentMapDepth2 0.02
testParentFromContentMapDepth1 0.023
testParentFromContentMapDepth2 0.042
testIsPublicInstanceTrue 0.014
testAsJCRNodeFromContentMap 0.034
testExternalLinkFromContentMapNoProtocol 0.043
testChildrenFromNodeAndTypeComponent 0.023
testNonExistingInheritedPropertyShouldReturnNull 0.024
testExternalLinkFromNodeWithProtocol 0.011
testInheritFromNodeNoContent 0.036
testExternalLinkFromContentMapWithProtocol 0.03
testIsPreviewModeTrue 0.026
testRootFromComponentContentMapDepth1 0.022
testRootFromComponentContentMapDepth2 0.041
testLinkFromNodeDepth1 0.022
testLinkFromNodeDepth2 0.018
testChildrenFromContentMap 0.018
testIsPreviewModeFalse 0.029
testIsPublicInstanceFalse 0.022
testGetContentById 0.029
testParentPageFromNodeDepth1 0.021
testNodeIsFromCurrentPage 0.021

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.849
testComponentInheritance 0.148
testPropertyInheritanceWithInheritanceDisabled 0.132
testDisabledPropertyInheritance 0.131
testMultiLevelPropertyInheritance 0.178
testDoesNothingOnTopLevelPage 0.143
testResourcesInheritance 0.184
testPropertyInheritance 0.157

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 12.071

NoScriptRendererTest

testRenderListOfComponents 0.021
testRenderSingleComponent 0.022

PlainTextRendererTest

testRenderInPreview 0.038
testRender 0.016

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