Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.314
info.magnolia.templating.module.setup 1 0 0 0 100% 2.497
info.magnolia.templating.functions 177 0 0 0 100% 1.194
info.magnolia.templating.elements 69 0 0 2 97.101% 1.516
info.magnolia.templating.renderers 4 0 0 0 100% 0.045
info.magnolia.templating.inheritance 8 0 0 0 100% 0.417

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.027
AreaDirectiveTest 14 0 0 0 100% 0.997
ComponentDirectiveTest 4 0 0 0 100% 0.116
InitDirectiveTest 2 0 0 0 100% 0.051
PageDirectiveTest 2 0 0 0 100% 0.051
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.026
RenderableDefinitionModelTest 3 0 0 0 100% 0.046

info.magnolia.templating.module.setup

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

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 7 0 0 0 100% 0.071
TemplatingFunctionsMetaDataTest 22 0 0 0 100% 0.015
TemplatingFunctionsTest 148 0 0 0 100% 1.108

info.magnolia.templating.elements

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.567
AbstractTemplateElementTest 8 0 0 2 75% 0.146
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.185
AreaElementComponentsTest 5 0 0 0 100% 0.073
AreaElementTest 25 0 0 0 100% 0.369
ComponentElementTest 10 0 0 0 100% 0.105
InitElementTest 4 0 0 0 100% 0.035
MarkupHelperTest 3 0 0 0 100% 0
PageElementTest 4 0 0 0 100% 0.036

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.025
PlainTextRendererTest 2 0 0 0 100% 0.02

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.525
testSetAttributesInWebContext 0.015
testGetTargetContent 0.013
testGetActivationStatus 0.014

AbstractTemplateElementTest

testCurrentContent 0.031
testUsesDefaultBundleIfNotSpecified 0.055
testGetsCustomMessageCustomBundleWithPageTemplate 0.016
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.015
testDefaultMessageFromCustomBundleWithPageTemplate 0.014
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.015

AreaElementCanRenderAreaTest

test1 0.026
test2 0.019
test3 0.01
test4 0.01
test5 0.105
test6 0.015

AreaElementComponentsTest

testMaxComponentsNotSet 0.019
testShouldShowAddButtonTypeSingle 0.012
testMaxComponentsNotReached 0.015
testShouldShowAddButtonTypeNoComponent 0.012
testMaxComponentsReached 0.015

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.016
testBeginWithEditable 0.012
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.01
testEndWithAllowedInheritButNullInheritConfig 0.013
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.015
testEndWithConfFromTemplateDefinition 0.015
testBeginCreateNodeArea 0.013
testDontRenderCmsCommentsInPreviewMode 0.01
testBeginSimple 0.011
testUseAreaI18nBaseNameIfPossible 0.015
testDoNotFailOnNPEDuringCanRenderAreaScript 0.071
testSingleAreaWithMoreComponentsShouldNotFail 0.012
testBeginWithInheritence 0.018
testResolveTemplateDefinitionConsidersVariation 0.016
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.011
testTryToCreateAreaNode 0.013
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.011
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.011
testBeginWithCreateAreaNodeAttribute 0.011
testAvailableComponentsForSuperuser 0.01
testRenderCmsCommentsWhenBeeingInEditMode 0.012
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.011
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.011
testBeginGetContentFromParent 0.01
testAvailableComponentsForEditor 0.011

ComponentElementTest

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

InitElementTest

testOutputContainsContent 0.009
testOutputContainsContentAndDialog 0.009
testOutputWithoutContent 0.008
testOutputwithoutDialog 0.009

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.009
testOutputContainsContentAndDialog 0.009
testOutputWithoutContent 0.009
testOutputwithoutDialog 0.009

AbstractDirectiveTest

testInitContentComponent 0.008
testBodyCheck 0.019

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.492
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.048
testShowAddButtonWhenMaxComponentsIsNotReached 0.045
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.047
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.042
testRenderAreaWithActivationStatusModified 0.037
testRenderSimpleBarWithoutAreaNode 0.036
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.036
testRenderSimpleBar 0.035
testDontShowAddButtonWhenMaxComponentsIsReached 0.035
testCreateAreaNodeSetToFalse 0.035
testCreateAreaNodeSetToTrue 0.052
testDontShowBarWhenAreaIsHasNoComponentType 0.03
testRenderNoBar 0.027

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.032
testRenderSimpleBar 0.031
testRenderWithDialog 0.026
testRenderComponentWithActivationStatusPublished 0.027

InitDirectiveTest

testRenderWithContent 0.025
testRenderWithContentAndDialog 0.026

PageDirectiveTest

testRenderWithContent 0.025
testRenderWithContentAndDialog 0.026

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.026

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.027
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.011
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.008

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.016
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.008
localizedLinksContainLinksToLocales 0.019
checkCurrentLanguage 0.007
localizedLinksMaintainSelectors 0.007
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.007
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.007

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.184
testComponentInheritance 0.038
testPropertyInheritanceWithInheritanceDisabled 0.035
testDisabledPropertyInheritance 0.032
testMultiLevelPropertyInheritance 0.031
testDoesNothingOnTopLevelPage 0.034
testResourcesInheritance 0.031
testPropertyInheritance 0.032

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 2.497

NoScriptRendererTest

testRenderListOfComponents 0.015
testRenderSingleComponent 0.01

PlainTextRendererTest

testRenderInPreview 0.012
testRender 0.008

Failure Details

[Summary] [Package List] [Test Cases]


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