Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
288 0 0 2 99.306% 6.637

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.281
info.magnolia.templating.module.setup 1 0 0 0 100% 2.512
info.magnolia.templating.functions 178 0 0 0 100% 1.171
info.magnolia.templating.elements 69 0 0 2 97.101% 1.17
info.magnolia.templating.renderers 4 0 0 0 100% 0.037
info.magnolia.templating.inheritance 8 0 0 0 100% 0.466

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.03
AreaDirectiveTest 14 0 0 0 100% 0.95
ComponentDirectiveTest 4 0 0 0 100% 0.123
InitDirectiveTest 2 0 0 0 100% 0.054
PageDirectiveTest 2 0 0 0 100% 0.049
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.029
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.512

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 7 0 0 0 100% 0.069
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.013
TemplatingFunctionsTest 148 0 0 0 100% 1.089

info.magnolia.templating.elements

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.367
AbstractTemplateElementTest 8 0 0 2 75% 0.142
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.155
AreaElementComponentsTest 5 0 0 0 100% 0.058
AreaElementTest 25 0 0 0 100% 0.277
ComponentElementTest 10 0 0 0 100% 0.101
InitElementTest 4 0 0 0 100% 0.029
MarkupHelperTest 3 0 0 0 100% 0.001
PageElementTest 4 0 0 0 100% 0.04

info.magnolia.templating.renderers

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.335
testSetAttributesInWebContext 0.01
testGetTargetContent 0.011
testGetActivationStatus 0.011

AbstractTemplateElementTest

testCurrentContent 0.03
testUsesDefaultBundleIfNotSpecified 0.061
testGetsCustomMessageCustomBundleWithPageTemplate 0.013
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.014
testDefaultMessageFromCustomBundleWithPageTemplate 0.013
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.011

AreaElementCanRenderAreaTest

test1 0.014
test2 0.035
test3 0.003
test4 0.008
test5 0.085
test6 0.01

AreaElementComponentsTest

testMaxComponentsNotSet 0.015
testShouldShowAddButtonTypeSingle 0.01
testMaxComponentsNotReached 0.01
testShouldShowAddButtonTypeNoComponent 0.009
testMaxComponentsReached 0.014

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.008
testBeginWithEditable 0.009
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.008
testEndWithAllowedInheritButNullInheritConfig 0.009
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.008
testEndWithConfFromTemplateDefinition 0.008
testBeginCreateNodeArea 0.008
testDontRenderCmsCommentsInPreviewMode 0.007
testBeginSimple 0.007
testUseAreaI18nBaseNameIfPossible 0.008
testDoNotFailOnNPEDuringCanRenderAreaScript 0.063
testSingleAreaWithMoreComponentsShouldNotFail 0.009
testBeginWithInheritence 0.009
testResolveTemplateDefinitionConsidersVariation 0.018
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.011
testTryToCreateAreaNode 0.01
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.007
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.008
testBeginWithCreateAreaNodeAttribute 0.009
testAvailableComponentsForSuperuser 0.007
testRenderCmsCommentsWhenBeeingInEditMode 0.009
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.008
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.011
testBeginGetContentFromParent 0.008
testAvailableComponentsForEditor 0.01

ComponentElementTest

testRenderBeginAll 0.008
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.009
testRenderBeginWithEditable 0.008
testDontRenderCmsCommentsInPreviewMode 0.009
testRenderWithoutComment 0.02
testResolvePermissionsFromTemplate 0.007
testRenderBeginOnlyContent 0.016
testResolvePermissionsFromTemplateAvailability 0.008
testRenderCmsCommentsWhenBeeingInEditMode 0.008
testPostRender 0.008

InitElementTest

testOutputContainsContent 0.007
testOutputContainsContentAndDialog 0.007
testOutputWithoutContent 0.007
testOutputwithoutDialog 0.008

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0.001

PageElementTest

testOutputContainsContent 0.008
testOutputContainsContentAndDialog 0.01
testOutputWithoutContent 0.014
testOutputwithoutDialog 0.008

AbstractDirectiveTest

testInitContentComponent 0.01
testBodyCheck 0.02

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.444
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.04
testShowAddButtonWhenMaxComponentsIsNotReached 0.047
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.041
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.05
testRenderAreaWithActivationStatusModified 0.036
testRenderSimpleBarWithoutAreaNode 0.035
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.04
testRenderSimpleBar 0.03
testDontShowAddButtonWhenMaxComponentsIsReached 0.034
testCreateAreaNodeSetToFalse 0.037
testCreateAreaNodeSetToTrue 0.036
testDontShowBarWhenAreaIsHasNoComponentType 0.053
testRenderNoBar 0.027

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.031
testRenderSimpleBar 0.033
testRenderWithDialog 0.031
testRenderComponentWithActivationStatusPublished 0.028

InitDirectiveTest

testRenderWithContent 0.027
testRenderWithContentAndDialog 0.027

PageDirectiveTest

testRenderWithContent 0.027
testRenderWithContentAndDialog 0.022

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.029

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.028
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.01
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.008

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.015
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.008
localizedLinksContainLinksToLocales 0.018
checkCurrentLanguage 0.007
localizedLinksMaintainSelectors 0.006
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.007
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.008

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.201
testComponentInheritance 0.044
testPropertyInheritanceWithInheritanceDisabled 0.045
testDisabledPropertyInheritance 0.038
testMultiLevelPropertyInheritance 0.041
testDoesNothingOnTopLevelPage 0.027
testResourcesInheritance 0.034
testPropertyInheritance 0.036

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 2.512

NoScriptRendererTest

testRenderListOfComponents 0.013
testRenderSingleComponent 0.009

PlainTextRendererTest

testRenderInPreview 0.009
testRender 0.006

Failure Details

[Summary] [Package List] [Test Cases]


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