Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.43
info.magnolia.templating.module.setup 1 0 0 0 100% 2.599
info.magnolia.templating.functions 178 0 0 0 100% 1.389
info.magnolia.templating.elements 69 0 0 2 97.101% 1.183
info.magnolia.templating.renderers 4 0 0 0 100% 0.043
info.magnolia.templating.inheritance 8 0 0 0 100% 0.49

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.026
AreaDirectiveTest 14 0 0 0 100% 0.989
ComponentDirectiveTest 4 0 0 0 100% 0.142
InitDirectiveTest 2 0 0 0 100% 0.091
PageDirectiveTest 2 0 0 0 100% 0.071
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.037
RenderableDefinitionModelTest 3 0 0 0 100% 0.074

info.magnolia.templating.module.setup

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

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 7 0 0 0 100% 0.086
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.02
TemplatingFunctionsTest 148 0 0 0 100% 1.283

info.magnolia.templating.elements

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.377
AbstractTemplateElementTest 8 0 0 2 75% 0.149
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.16
AreaElementComponentsTest 5 0 0 0 100% 0.063
AreaElementTest 25 0 0 0 100% 0.287
ComponentElementTest 10 0 0 0 100% 0.079
InitElementTest 4 0 0 0 100% 0.036
MarkupHelperTest 3 0 0 0 100% 0
PageElementTest 4 0 0 0 100% 0.032

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.021

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.343
testSetAttributesInWebContext 0.011
testGetTargetContent 0.012
testGetActivationStatus 0.011

AbstractTemplateElementTest

testCurrentContent 0.033
testUsesDefaultBundleIfNotSpecified 0.065
testGetsCustomMessageCustomBundleWithPageTemplate 0.014
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.013
testDefaultMessageFromCustomBundleWithPageTemplate 0.012
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.012

AreaElementCanRenderAreaTest

test1 0.017
test2 0.023
test3 0.01
test4 0.009
test5 0.085
test6 0.016

AreaElementComponentsTest

testMaxComponentsNotSet 0.016
testShouldShowAddButtonTypeSingle 0.009
testMaxComponentsNotReached 0.013
testShouldShowAddButtonTypeNoComponent 0.009
testMaxComponentsReached 0.016

AreaElementTest

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

ComponentElementTest

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

InitElementTest

testOutputContainsContent 0.007
testOutputContainsContentAndDialog 0.008
testOutputWithoutContent 0.014
testOutputwithoutDialog 0.007

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.008
testOutputContainsContentAndDialog 0.008
testOutputWithoutContent 0.008
testOutputwithoutDialog 0.008

AbstractDirectiveTest

testInitContentComponent 0.007
testBodyCheck 0.019

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.478
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.047
testShowAddButtonWhenMaxComponentsIsNotReached 0.049
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.041
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.045
testRenderAreaWithActivationStatusModified 0.04
testRenderSimpleBarWithoutAreaNode 0.039
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.038
testRenderSimpleBar 0.036
testDontShowAddButtonWhenMaxComponentsIsReached 0.036
testCreateAreaNodeSetToFalse 0.04
testCreateAreaNodeSetToTrue 0.031
testDontShowBarWhenAreaIsHasNoComponentType 0.031
testRenderNoBar 0.038

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.035
testRenderSimpleBar 0.04
testRenderWithDialog 0.036
testRenderComponentWithActivationStatusPublished 0.031

InitDirectiveTest

testRenderWithContent 0.065
testRenderWithContentAndDialog 0.026

PageDirectiveTest

testRenderWithContent 0.032
testRenderWithContentAndDialog 0.039

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.037

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.054
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.011
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.009

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.015
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.009
localizedLinksContainLinksToLocales 0.024
checkCurrentLanguage 0.009
localizedLinksMaintainSelectors 0.011
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.009
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.009

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.251
testComponentInheritance 0.039
testPropertyInheritanceWithInheritanceDisabled 0.037
testDisabledPropertyInheritance 0.034
testMultiLevelPropertyInheritance 0.032
testDoesNothingOnTopLevelPage 0.032
testResourcesInheritance 0.03
testPropertyInheritance 0.035

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 2.599

NoScriptRendererTest

testRenderListOfComponents 0.013
testRenderSingleComponent 0.009

PlainTextRendererTest

testRenderInPreview 0.013
testRender 0.008

Failure Details

[Summary] [Package List] [Test Cases]


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