Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
287 0 0 2 99.303% 5.405

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 28 0 0 0 100% 1.006
info.magnolia.templating.module.setup 1 0 0 0 100% 2.115
info.magnolia.templating.functions 177 0 0 0 100% 0.727
info.magnolia.templating.elements 69 0 0 2 97.101% 1.19
info.magnolia.templating.renderers 4 0 0 0 100% 0.03
info.magnolia.templating.inheritance 8 0 0 0 100% 0.337

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.024
AreaDirectiveTest 14 0 0 0 100% 0.763
ComponentDirectiveTest 4 0 0 0 100% 0.092
InitDirectiveTest 2 0 0 0 100% 0.04
PageDirectiveTest 2 0 0 0 100% 0.039
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.02
RenderableDefinitionModelTest 3 0 0 0 100% 0.028

info.magnolia.templating.module.setup

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

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 7 0 0 0 100% 0.05
TemplatingFunctionsMetaDataTest 22 0 0 0 100% 0.013
TemplatingFunctionsTest 148 0 0 0 100% 0.664

info.magnolia.templating.elements

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.431
AbstractTemplateElementTest 8 0 0 2 75% 0.127
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.151
AreaElementComponentsTest 5 0 0 0 100% 0.056
AreaElementTest 25 0 0 0 100% 0.294
ComponentElementTest 10 0 0 0 100% 0.075
InitElementTest 4 0 0 0 100% 0.03
MarkupHelperTest 3 0 0 0 100% 0.001
PageElementTest 4 0 0 0 100% 0.025

info.magnolia.templating.renderers

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.396
testSetAttributesInWebContext 0.01
testGetTargetContent 0.01
testGetActivationStatus 0.015

AbstractTemplateElementTest

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

AreaElementCanRenderAreaTest

test1 0.022
test2 0.017
test3 0.009
test4 0.009
test5 0.083
test6 0.011

AreaElementComponentsTest

testMaxComponentsNotSet 0.015
testShouldShowAddButtonTypeSingle 0.01
testMaxComponentsNotReached 0.011
testShouldShowAddButtonTypeNoComponent 0.009
testMaxComponentsReached 0.011

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.012
testBeginWithEditable 0.009
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.008
testEndWithAllowedInheritButNullInheritConfig 0.009
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.013
testEndWithConfFromTemplateDefinition 0.009
testBeginCreateNodeArea 0.019
testDontRenderCmsCommentsInPreviewMode 0.009
testBeginSimple 0.009
testUseAreaI18nBaseNameIfPossible 0.013
testDoNotFailOnNPEDuringCanRenderAreaScript 0.056
testSingleAreaWithMoreComponentsShouldNotFail 0.01
testBeginWithInheritence 0.009
testResolveTemplateDefinitionConsidersVariation 0.016
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.01
testTryToCreateAreaNode 0.01
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.008
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.008
testBeginWithCreateAreaNodeAttribute 0.008
testAvailableComponentsForSuperuser 0.008
testRenderCmsCommentsWhenBeeingInEditMode 0.009
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.008
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.008
testBeginGetContentFromParent 0.008
testAvailableComponentsForEditor 0.008

ComponentElementTest

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

InitElementTest

testOutputContainsContent 0.011
testOutputContainsContentAndDialog 0.006
testOutputWithoutContent 0.006
testOutputwithoutDialog 0.007

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0.001
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.006
testOutputContainsContentAndDialog 0.007
testOutputWithoutContent 0.006
testOutputwithoutDialog 0.006

AbstractDirectiveTest

testInitContentComponent 0.008
testBodyCheck 0.016

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.403
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.046
testShowAddButtonWhenMaxComponentsIsNotReached 0.034
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.033
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.031
testRenderAreaWithActivationStatusModified 0.027
testRenderSimpleBarWithoutAreaNode 0.025
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.024
testRenderSimpleBar 0.024
testDontShowAddButtonWhenMaxComponentsIsReached 0.024
testCreateAreaNodeSetToFalse 0.024
testCreateAreaNodeSetToTrue 0.023
testDontShowBarWhenAreaIsHasNoComponentType 0.023
testRenderNoBar 0.022

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.023
testRenderSimpleBar 0.026
testRenderWithDialog 0.021
testRenderComponentWithActivationStatusPublished 0.022

InitDirectiveTest

testRenderWithContent 0.021
testRenderWithContentAndDialog 0.019

PageDirectiveTest

testRenderWithContent 0.019
testRenderWithContentAndDialog 0.02

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.02

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.016
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.006
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.006

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.011
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.004
localizedLinksContainLinksToLocales 0.014
checkCurrentLanguage 0.005
localizedLinksMaintainSelectors 0.006
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.005
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.005

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.152
testComponentInheritance 0.03
testPropertyInheritanceWithInheritanceDisabled 0.028
testDisabledPropertyInheritance 0.027
testMultiLevelPropertyInheritance 0.025
testDoesNothingOnTopLevelPage 0.025
testResourcesInheritance 0.024
testPropertyInheritance 0.026

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 2.115

NoScriptRendererTest

testRenderListOfComponents 0.01
testRenderSingleComponent 0.007

PlainTextRendererTest

testRenderInPreview 0.008
testRender 0.005

Failure Details

[Summary] [Package List] [Test Cases]


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