Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.06
info.magnolia.templating.module.setup 1 0 0 0 100% 1.981
info.magnolia.templating.functions 178 0 0 0 100% 0.867
info.magnolia.templating.elements 69 0 0 2 97.101% 1.074
info.magnolia.templating.renderers 4 0 0 0 100% 0.032
info.magnolia.templating.inheritance 8 0 0 0 100% 0.336

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.023
AreaDirectiveTest 14 0 0 0 100% 0.781
ComponentDirectiveTest 4 0 0 0 100% 0.119
InitDirectiveTest 2 0 0 0 100% 0.045
PageDirectiveTest 2 0 0 0 100% 0.04
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.021
RenderableDefinitionModelTest 3 0 0 0 100% 0.031

info.magnolia.templating.module.setup

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

info.magnolia.templating.functions

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

info.magnolia.templating.elements

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.334
AbstractTemplateElementTest 8 0 0 2 75% 0.136
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.141
AreaElementComponentsTest 5 0 0 0 100% 0.056
AreaElementTest 25 0 0 0 100% 0.263
ComponentElementTest 10 0 0 0 100% 0.085
InitElementTest 4 0 0 0 100% 0.03
MarkupHelperTest 3 0 0 0 100% 0
PageElementTest 4 0 0 0 100% 0.029

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.304
testSetAttributesInWebContext 0.01
testGetTargetContent 0.01
testGetActivationStatus 0.01

AbstractTemplateElementTest

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

AreaElementCanRenderAreaTest

test1 0.013
test2 0.022
test3 0.009
test4 0.007
test5 0.081
test6 0.009

AreaElementComponentsTest

testMaxComponentsNotSet 0.013
testShouldShowAddButtonTypeSingle 0.008
testMaxComponentsNotReached 0.01
testShouldShowAddButtonTypeNoComponent 0.01
testMaxComponentsReached 0.015

AreaElementTest

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

ComponentElementTest

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

InitElementTest

testOutputContainsContent 0.007
testOutputContainsContentAndDialog 0.008
testOutputWithoutContent 0.007
testOutputwithoutDialog 0.008

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.007
testOutputContainsContentAndDialog 0.007
testOutputWithoutContent 0.007
testOutputwithoutDialog 0.008

AbstractDirectiveTest

testInitContentComponent 0.007
testBodyCheck 0.016

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.397
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.036
testShowAddButtonWhenMaxComponentsIsNotReached 0.036
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.035
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.033
testRenderAreaWithActivationStatusModified 0.029
testRenderSimpleBarWithoutAreaNode 0.028
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.026
testRenderSimpleBar 0.027
testDontShowAddButtonWhenMaxComponentsIsReached 0.027
testCreateAreaNodeSetToFalse 0.028
testCreateAreaNodeSetToTrue 0.026
testDontShowBarWhenAreaIsHasNoComponentType 0.026
testRenderNoBar 0.027

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.027
testRenderSimpleBar 0.049
testRenderWithDialog 0.022
testRenderComponentWithActivationStatusPublished 0.021

InitDirectiveTest

testRenderWithContent 0.022
testRenderWithContentAndDialog 0.023

PageDirectiveTest

testRenderWithContent 0.019
testRenderWithContentAndDialog 0.021

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.021

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.018
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.006
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.007

TemplatingFunctionsI18nTest

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

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.154
testComponentInheritance 0.029
testPropertyInheritanceWithInheritanceDisabled 0.027
testDisabledPropertyInheritance 0.027
testMultiLevelPropertyInheritance 0.023
testDoesNothingOnTopLevelPage 0.027
testResourcesInheritance 0.023
testPropertyInheritance 0.026

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 1.981

NoScriptRendererTest

testRenderListOfComponents 0.01
testRenderSingleComponent 0.007

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