Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
215 0 0 2 99.07% 13.164

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 17 0 0 0 100% 1.647
info.magnolia.templating.module.setup 2 0 0 0 100% 8.978
info.magnolia.templating.functions 123 0 0 0 100% 0.315
info.magnolia.templating.elements 61 0 0 2 96.721% 2.141
info.magnolia.templating.renderers 4 0 0 0 100% 0.038
info.magnolia.templating.inheritance 8 0 0 0 100% 0.045

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.044
AreaDirectiveTest 6 0 0 0 100% 1.309
ComponentDirectiveTest 2 0 0 0 100% 0.113
InitDirectiveTest 3 0 0 0 100% 0.13
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.031
RenderableDefinitionModelTest 3 0 0 0 100% 0.02

info.magnolia.templating.module.setup

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

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsTest 123 0 0 0 100% 0.315

info.magnolia.templating.elements

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentTemplatingElementTest 3 0 0 0 100% 1.239
AbstractTemplateElementTest 8 0 0 2 75% 0.192
AreaElementComponentsTest 5 0 0 0 100% 0.113
AreaElementTest 20 0 0 0 100% 0.456
ComponentElementTest 10 0 0 0 100% 0.063
InitElementTest 12 0 0 0 100% 0.076
MarkupHelperTest 3 0 0 0 100% 0.002

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.021
PlainTextRendererTest 2 0 0 0 100% 0.017

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 1.221
testSetAttributesInWebContext 0.007
testGetTargetContent 0.011

AbstractTemplateElementTest

testCurrentContent 0.036
testUsesDefaultBundleIfNotSpecified 0.041
testGetsCustomMessageCustomBundleWithPageTemplate 0.017
testUsesDefaultBundleIfNoMetadata 0.018
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.013
testDefaultMessageFromCustomBundleWithPageTemplate 0.024
testUsesDefaultBundleIfNotRenderableDefinition 0.024
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.019

AreaElementComponentsTest

testMaxComponentsNotSet 0.078
testShouldShowAddButtonTypeSingle 0.006
testMaxComponentsNotReached 0.01
testShouldShowAddButtonTypeNoComponent 0.005
testMaxComponentsReached 0.014

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.034
testBeginWithEditable 0.034
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.005
testEndWithAllowedInheritButNullInheritConfig 0.006
testEndWithConfFromTemplateDefinition 0.013
testDontRenderCmsCommentsInPreviewMode 0.007
testBeginSimple 0.006
testUseAreaI18nBaseNameIfPossible 0.013
testDoNotFailOnNPEDuringCanRenderAreaScript 0.137
testBeginWithInheritence 0.011
testResolveTemplateDefinitionConsidersVariation 0.02
testTryToCreateAreaNode 0.009
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.007
testCantRenderAreaScript 0.053
testAvailableComponentsForSuperuser 0.014
testRenderCmsCommentsWhenBeeingInEditMode 0.009
testBeginCreateNode 0.034
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.024
testBeginGetContentFromParent 0.007
testAvailableComponentsForEditor 0.013

ComponentElementTest

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

InitElementTest

testOutputContainsSourcesCss 0.012
testExcludeCalendarResources 0.006
testOutputEndPart 0.005
testOutputContainsContent 0.006
testOutputContainsGwtLocaleMetaProperty 0.011
testOutputContainsContentAndDialog 0.001
testOutputContainsPageEditorStyles 0.009
testOutputContainsPageEditorJavascript 0.005
testPageBarIsRenderedWhenUserHasWritePermission 0.005
testOutputWithoutContent 0.005
testOutputContainsSourcesJavascript 0.007
testPageBarIsNotRenderedWhenUserHasNoWritePermission 0.004

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AbstractDirectiveTest

testInitContentComponent 0.019
testBodyCheck 0.025

AreaDirectiveTest

testShowAddButtonWhenMaxComponentsIsNotReached 1.037
testRenderSimpleBarWithoutAreaNode 0.061
testRenderSimpleBar 0.07
testDontShowAddButtonWhenMaxComponentsIsReached 0.055
testDontShowBarWhenAreaIsHasNoComponentType 0.056
testRenderNoBar 0.03

ComponentDirectiveTest

testRenderSimpleBar 0.06
testRenderWithDialog 0.053

InitDirectiveTest

testRenderWithContent 0.047
testRenderWithContentAndDialog 0.042
testRenderSimpleBar 0.041

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.031

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.017
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.003

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.02
testComponentInheritance 0.005
testPropertyInheritanceWithInheritanceDisabled 0
testDisabledPropertyInheritance 0.002
testMultiLevelPropertyInheritance 0.014
testDoesNothingOnTopLevelPage 0.001
testResourcesInheritance 0.001
testPropertyInheritance 0.002

TemplatingModuleVersionHandlerTest

testUpdateFrom4515 6.307
testInstallFrom4_4_6 2.671

NoScriptRendererTest

testRenderListOfComponents 0.015
testRenderSingleComponent 0.006

PlainTextRendererTest

testRenderInPreview 0.017
testRender 0

Failure Details

[Summary] [Package List] [Test Cases]


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