Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.531
info.magnolia.templating.module.setup 1 0 0 0 100% 2.922
info.magnolia.templating.functions 177 0 0 0 100% 1.082
info.magnolia.templating.elements 69 0 0 2 97.101% 1.277
info.magnolia.templating.renderers 4 0 0 0 100% 0.076
info.magnolia.templating.inheritance 8 0 0 0 100% 0.457

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% 1.195
ComponentDirectiveTest 4 0 0 0 100% 0.118
InitDirectiveTest 2 0 0 0 100% 0.057
PageDirectiveTest 2 0 0 0 100% 0.064
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.029
RenderableDefinitionModelTest 3 0 0 0 100% 0.042

info.magnolia.templating.module.setup

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

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 7 0 0 0 100% 0.061
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.015
TemplatingFunctionsTest 147 0 0 0 100% 1.006

info.magnolia.templating.elements

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.402
AbstractTemplateElementTest 8 0 0 2 75% 0.189
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.163
AreaElementComponentsTest 5 0 0 0 100% 0.069
AreaElementTest 25 0 0 0 100% 0.299
ComponentElementTest 10 0 0 0 100% 0.09
InitElementTest 4 0 0 0 100% 0.034
MarkupHelperTest 3 0 0 0 100% 0
PageElementTest 4 0 0 0 100% 0.031

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.042
PlainTextRendererTest 2 0 0 0 100% 0.034

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.359
testSetAttributesInWebContext 0.012
testGetTargetContent 0.013
testGetActivationStatus 0.018

AbstractTemplateElementTest

testCurrentContent 0.037
testUsesDefaultBundleIfNotSpecified 0.07
testGetsCustomMessageCustomBundleWithPageTemplate 0.025
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.024
testDefaultMessageFromCustomBundleWithPageTemplate 0.019
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.014

AreaElementCanRenderAreaTest

test1 0.017
test2 0.023
test3 0.01
test4 0.008
test5 0.094
test6 0.011

AreaElementComponentsTest

testMaxComponentsNotSet 0.016
testShouldShowAddButtonTypeSingle 0.009
testMaxComponentsNotReached 0.015
testShouldShowAddButtonTypeNoComponent 0.011
testMaxComponentsReached 0.018

AreaElementTest

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

ComponentElementTest

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

InitElementTest

testOutputContainsContent 0.009
testOutputContainsContentAndDialog 0.008
testOutputWithoutContent 0.009
testOutputwithoutDialog 0.008

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.008
testOutputContainsContentAndDialog 0.007
testOutputWithoutContent 0.009
testOutputwithoutDialog 0.007

AbstractDirectiveTest

testInitContentComponent 0.009
testBodyCheck 0.017

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.492
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.049
testShowAddButtonWhenMaxComponentsIsNotReached 0.072
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.061
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.061
testRenderAreaWithActivationStatusModified 0.048
testRenderSimpleBarWithoutAreaNode 0.039
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.042
testRenderSimpleBar 0.038
testDontShowAddButtonWhenMaxComponentsIsReached 0.05
testCreateAreaNodeSetToFalse 0.064
testCreateAreaNodeSetToTrue 0.054
testDontShowBarWhenAreaIsHasNoComponentType 0.08
testRenderNoBar 0.045

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.039
testRenderSimpleBar 0.029
testRenderWithDialog 0.025
testRenderComponentWithActivationStatusPublished 0.025

InitDirectiveTest

testRenderWithContent 0.032
testRenderWithContentAndDialog 0.025

PageDirectiveTest

testRenderWithContent 0.031
testRenderWithContentAndDialog 0.033

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.029

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.026
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.008
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.008

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.012
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.006
localizedLinksContainLinksToLocales 0.02
checkCurrentLanguage 0.006
localizedLinksMaintainSelectors 0.006
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.005
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.006

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

createHtmlAttributeNoValue 0.009
parentPageFromNodeDepth1 0.006
configuredInheritance 0.007
siteRootCustom 0.007
externalLinkFromContentMapWithProtocol 0.006
isEditModeAuthorAndNotPreview 0.005
getQueryStringAndFragmentSimple 0.007
externalLinkFromNodeNoProtocol 0.005
ancestorPagesFromSubComponentNodeDepth5 0.006
parentFromNodeDepth1 0.006
parentFromNodeDepth2 0.006
getReadableFileSize 0.009
linkForPropertyFromNodeDepth1 0.006
linkForPropertyFromNodeDepth2 0.005
language 0.006
abbreviateStringWithCustomSuffix 0.006
contentByReferenceThrowsRepositoryExceptions 0.007
childrenFromNodeAndTypeComponent 0.005
contentByIdentifier 0.006
createHtmlAttribute 0.016
childrenFromNodeAndTypePage 0.007
isPublicInstanceTrue 0.007
externalLinkFromNodeWithProtocol 0.005
getQueryStringAndFragmentOnlyQuery 0.005
inheritFromNodeOnlyContent 0.007
linkFromContentMapDepth1 0.006
linkFromContentMapDepth2 0.005
rootFromComponentNodeDepth1 0.006
rootFromComponentNodeDepth2 0.005
rootPageFromComponentNodeDepth1 0.005
rootPageFromComponentNodeDepth2 0.005
ancestorsFromNodeDepth1 0.007
pageFromRootShouldBeNull 0.005
parentFromContentMapDepth1 0.005
parentFromContentMapDepth2 0.007
contentByPath 0.006
contentByReference 0.006
abbreviateStringOfNull 0.006
getQueryStringAndFragmentBoth 0.007
linkPrefixWithoutContextPath 0.007
ancestorPagesFromComponentNodeDepth4 0.006
nonExistingInheritedPropertyShouldReturnNull 0.006
linkFromNodeDepth1 0.006
linkFromNodeDepth2 0.005
externalLinkTitleFromNodeNoTitleSet 0.006
externalLinkTitleFromContentMapWithTitle 0.006
isPreviewModeFalse 0.006
pageContentMapFromRootShouldBeNull 0.007
rootPageFromPageContentMapDepth1 0.005
rootPageFromPageContentMapDepth2 0.005
rootPageFromPageContentMapDepth3 0.007
ancestorPagesFromNodeDepth1 0.006
siteRootNotFindingTemplate 0.007
isAuthorInstanceFalse 0.009
asContentMapList 0.009
encodeNode 0.007
encodeText 0.006
siteRootAsContentMap 0.005
isAuthorInstanceTrue 0.006
contentByReferenceReturnsNullWhenPropertyDoesNotExist 0.006
inheritFromContentMapOnlyContentMap 0.006
contentById 0.005
parentFromRootNodeShouldBeNull 0.005
isEditModeNotAuthorAndPreview 0.006
isPreviewModeTrue 0.006
parentPageFromComponentContentMapDepth1 0.007
parentPageFromComponentContentMapDepth2 0.006
parentPageFromComponentContentMapDepth3 0.005
nonExistingInheritedRelPathShouldReturnNull 0.007
abbreviateMultiByteString 0.006
pageHavingNoParentPageShouldBeNull 0.007
ancestorsFromComponentContentMapDepth2 0.006
abbreviateStringNearlyAtTheEnd 0.009
siblings 0.009
contentMapIsFromCurrentPage 0.008
nodeIsInherited 0.015
externalLinkTitleFromNodeWithTitle 0.006
rootFromPageContentMapDepth1 0.008
rootFromPageContentMapDepth2 0.006
rootFromPageContentMapDepth3 0.007
ancestorsFromComponentNodeDepth2 0.006
contentByPathWithQueryString 0.008
getSiblingsFromContentMap 0.008
rootPageFromComponentContentMapDepth1 0.006
rootPageFromComponentContentMapDepth2 0.007
pageFromNodeDepth1 0.005
pageFromNodeDepth2 0.005
parentPageFromPageNode 0.007
ancestorsFromSubComponentNodeDepth5 0.006
childrenFromNode 0.01
siteRoot 0.006
parentPageFromPageContentMap 0.006
parentComponentFromPageContentMap 0.004
rootFromPageNodeDepth1 0.006
rootFromPageNodeDepth2 0.008
rootFromPageNodeDepth3 0.006
pageContentMapHavingNoParentPageShouldBeNull 0.005
nodeByPath 0.007
ancestorsFromSubComponentConentMapDepth5 0.006
childrenFromContentMapAndTypeComponent 0.008
inheritFromContentMap 0.008
contentMapIsInherited 0.009
ancestorPagesFromContentMapDepth1 0.009
ancestorPagesFromComponentContentMapDepth4 0.008
asContentMapfromNode 0.007
isEditModeNotAuthorAndNotPreview 0.015
parentPageFromComponentNodeDepth1 0.01
parentPageFromComponentNodeDepth2 0.007
parentPageFromComponentNodeDepth3 0.009
isEditModeAuthorAndPreview 0.005
ancestorsFromContentMapDepth1 0.004
inheritFromNode 0.008
nodeById 0.005
nodeByPathWithQueryString 0.008
parentFromRootContentMapShouldBeNull 0.007
pageFromComponentNodeDepth2 0.005
pageFromComponentNodeDepth3 0.008
abbreviateStringWhereStringIsCut 0.007
getQueryStringAndFragmentSimpleOnlyFragment 0.006
childrenFromContentMapAndTypePage 0.006
inheritedNodeIsUnwrapped 0.005
abbreviateStringWhereStringIsNotCut 0.007
asJCRNodeFromContentMap 0.006
linkPrefixWithContextPath 0.008
rootPageFromPageNodeDepth1 0.005
rootPageFromPageNodeDepth2 0.004
rootPageFromPageNodeDepth3 0.008
parentComponentFromPageNode 0.006
parentPageFromContentMapDepth1 0.007
pageFromContentMapDepth1 0.008
pageFromContentMapDepth2 0.012
pageFromComponentContentMapDepth2 0.015
pageFromComponentContentMapDepth3 0.009
externalLinkFromNodeWhereLinkIsAnchorIsEscaped 0.009
encodeContent 0.007
isPublicInstanceFalse 0.011
asNodeList 0.006
nodeIsFromCurrentPage 0.008
getFileExtension 0.007
inheritFromNodeNoContent 0.007
ancestorPagesFromSubComponentConentMapDepth5 0.007
childrenFromContentMap 0.006
externalLinkFromNodeWhereLinkIsAnchor 0.005
externalLinkTitleFromContentMapNoTitleSet 0.006
externalLinkFromContentMapNoProtocol 0.012
rootFromComponentContentMapDepth1 0.006
rootFromComponentContentMapDepth2 0.007

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.207
testComponentInheritance 0.036
testPropertyInheritanceWithInheritanceDisabled 0.045
testDisabledPropertyInheritance 0.037
testMultiLevelPropertyInheritance 0.031
testDoesNothingOnTopLevelPage 0.03
testResourcesInheritance 0.031
testPropertyInheritance 0.04

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 2.922

NoScriptRendererTest

testRenderListOfComponents 0.02
testRenderSingleComponent 0.022

PlainTextRendererTest

testRenderInPreview 0.017
testRender 0.017

Failure Details

[Summary] [Package List] [Test Cases]


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