Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 0.988
info.magnolia.templating.module.setup 1 0 0 0 100% 1.867
info.magnolia.templating.functions 178 0 0 0 100% 0.832
info.magnolia.templating.elements 69 0 0 2 97.101% 1.03
info.magnolia.templating.renderers 4 0 0 0 100% 0.03
info.magnolia.templating.inheritance 8 0 0 0 100% 0.327

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.022
AreaDirectiveTest 14 0 0 0 100% 0.718
ComponentDirectiveTest 4 0 0 0 100% 0.115
InitDirectiveTest 2 0 0 0 100% 0.041
PageDirectiveTest 2 0 0 0 100% 0.041
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.022
RenderableDefinitionModelTest 3 0 0 0 100% 0.029

info.magnolia.templating.module.setup

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

info.magnolia.templating.functions

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

info.magnolia.templating.elements

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.324
AbstractTemplateElementTest 8 0 0 2 75% 0.122
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.144
AreaElementComponentsTest 5 0 0 0 100% 0.053
AreaElementTest 25 0 0 0 100% 0.254
ComponentElementTest 10 0 0 0 100% 0.07
InitElementTest 4 0 0 0 100% 0.035
MarkupHelperTest 3 0 0 0 100% 0.001
PageElementTest 4 0 0 0 100% 0.027

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.016
PlainTextRendererTest 2 0 0 0 100% 0.014

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.293
testSetAttributesInWebContext 0.01
testGetTargetContent 0.01
testGetActivationStatus 0.011

AbstractTemplateElementTest

testCurrentContent 0.024
testUsesDefaultBundleIfNotSpecified 0.049
testGetsCustomMessageCustomBundleWithPageTemplate 0.014
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.012
testDefaultMessageFromCustomBundleWithPageTemplate 0.012
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.011

AreaElementCanRenderAreaTest

test1 0.013
test2 0.042
test3 0
test4 0
test5 0.08
test6 0.009

AreaElementComponentsTest

testMaxComponentsNotSet 0.013
testShouldShowAddButtonTypeSingle 0.009
testMaxComponentsNotReached 0.009
testShouldShowAddButtonTypeNoComponent 0.008
testMaxComponentsReached 0.014

AreaElementTest

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

ComponentElementTest

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

InitElementTest

testOutputContainsContent 0.013
testOutputContainsContentAndDialog 0.008
testOutputWithoutContent 0.007
testOutputwithoutDialog 0.007

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0.001
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.007
testOutputContainsContentAndDialog 0.007
testOutputWithoutContent 0.007
testOutputwithoutDialog 0.006

AbstractDirectiveTest

testInitContentComponent 0.007
testBodyCheck 0.015

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.368
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.032
testShowAddButtonWhenMaxComponentsIsNotReached 0.033
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.033
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.031
testRenderAreaWithActivationStatusModified 0.027
testRenderSimpleBarWithoutAreaNode 0.025
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.025
testRenderSimpleBar 0.024
testDontShowAddButtonWhenMaxComponentsIsReached 0.024
testCreateAreaNodeSetToFalse 0.026
testCreateAreaNodeSetToTrue 0.024
testDontShowBarWhenAreaIsHasNoComponentType 0.024
testRenderNoBar 0.022

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.035
testRenderSimpleBar 0.037
testRenderWithDialog 0.021
testRenderComponentWithActivationStatusPublished 0.022

InitDirectiveTest

testRenderWithContent 0.02
testRenderWithContentAndDialog 0.021

PageDirectiveTest

testRenderWithContent 0.022
testRenderWithContentAndDialog 0.019

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.022

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.018
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.006
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.005

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.01
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.004
localizedLinksContainLinksToLocales 0.013
checkCurrentLanguage 0.005
localizedLinksMaintainSelectors 0.005
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.005
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.005

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.147
testComponentInheritance 0.032
testPropertyInheritanceWithInheritanceDisabled 0.026
testDisabledPropertyInheritance 0.026
testMultiLevelPropertyInheritance 0.024
testDoesNothingOnTopLevelPage 0.024
testResourcesInheritance 0.022
testPropertyInheritance 0.026

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 1.867

NoScriptRendererTest

testRenderListOfComponents 0.009
testRenderSingleComponent 0.007

PlainTextRendererTest

testRenderInPreview 0.008
testRender 0.006

Failure Details

[Summary] [Package List] [Test Cases]


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