Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
315 0 0 2 99.365% 7.74

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.elements 71 0 0 2 97.183% 1.402
info.magnolia.templating.freemarker 28 0 0 0 100% 1.362
info.magnolia.templating.renderers 4 0 0 0 100% 0.042
info.magnolia.templating.functions 182 0 0 0 100% 1.341
info.magnolia.templating.inspector 20 0 0 0 100% 0.148
info.magnolia.templating.module.setup 2 0 0 0 100% 3.05
info.magnolia.templating.inheritance 8 0 0 0 100% 0.395

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

info.magnolia.templating.elements

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.47
AbstractTemplateElementTest 8 0 0 2 75% 0.168
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.174
AreaElementComponentsTest 5 0 0 0 100% 0.058
AreaElementTest 27 0 0 0 100% 0.352
ComponentElementTest 10 0 0 0 100% 0.114
InitElementTest 4 0 0 0 100% 0.031
MarkupHelperTest 3 0 0 0 100% 0.002
PageElementTest 4 0 0 0 100% 0.033

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
AbstractDirectiveTest 2 0 0 0 100% 0.041
AreaDirectiveTest 14 0 0 0 100% 1.026
ComponentDirectiveTest 4 0 0 0 100% 0.124
InitDirectiveTest 2 0 0 0 100% 0.051
PageDirectiveTest 2 0 0 0 100% 0.057
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.028
RenderableDefinitionModelTest 3 0 0 0 100% 0.035

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

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.156
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.013
TemplatingFunctionsTest 151 0 0 0 100% 1.172

info.magnolia.templating.inspector

Class Tests Errors Failures Skipped Success Rate Time
InspectorTest 20 0 0 0 100% 0.148

info.magnolia.templating.module.setup

Class Tests Errors Failures Skipped Success Rate Time
TemplatingModuleVersionHandlerTest 2 0 0 0 100% 3.05

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.426
testSetAttributesInWebContext 0.01
testGetTargetContent 0.024
testGetActivationStatus 0.01

AbstractTemplateElementTest

testCurrentContent 0.038
testUsesDefaultBundleIfNotSpecified 0.08
testGetsCustomMessageCustomBundleWithPageTemplate 0.012
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.008
testDefaultMessageFromCustomBundleWithPageTemplate 0.008
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.022

AreaElementCanRenderAreaTest

test1 0.014
test2 0.021
test3 0.007
test4 0.019
test5 0.104
test6 0.009

AreaElementComponentsTest

testMaxComponentsNotSet 0.024
testShouldShowAddButtonTypeSingle 0.007
testMaxComponentsNotReached 0.009
testShouldShowAddButtonTypeNoComponent 0.006
testMaxComponentsReached 0.012

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.008
dontCreateAreaNodeWhenNodeIsProtected 0.009
testBeginWithEditable 0.015
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.008
testEndWithAllowedInheritButNullInheritConfig 0.008
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.009
testEndWithConfFromTemplateDefinition 0.009
testBeginCreateNodeArea 0.007
testDontRenderCmsCommentsInPreviewMode 0.006
testBeginSimple 0.006
testUseAreaI18nBaseNameIfPossible 0.02
testDoNotFailOnNPEDuringCanRenderAreaScript 0.064
testSingleAreaWithMoreComponentsShouldNotFail 0.011
testBeginWithInheritence 0.012
testResolveTemplateDefinitionConsidersVariation 0.01
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0.009
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.018
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.009
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.008
testBeginWithCreateAreaNodeAttribute 0.011
testAvailableComponentsForSuperuser 0.017
testRenderCmsCommentsWhenBeeingInEditMode 0.011
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.016
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.012
testBeginGetContentFromParent 0.007
tryToCreateAreaNode 0.022
testAvailableComponentsForEditor 0.01

ComponentElementTest

testRenderBeginAll 0.009
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.007
testRenderBeginWithEditable 0.033
testDontRenderCmsCommentsInPreviewMode 0.01
testRenderWithoutComment 0.01
testResolvePermissionsFromTemplate 0.011
testRenderBeginOnlyContent 0.007
testResolvePermissionsFromTemplateAvailability 0.007
testRenderCmsCommentsWhenBeeingInEditMode 0.006
testPostRender 0.014

InitElementTest

testOutputContainsContent 0.009
testOutputContainsContentAndDialog 0.01
testOutputWithoutContent 0.006
testOutputwithoutDialog 0.006

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0.002

PageElementTest

testOutputContainsContent 0.013
testOutputContainsContentAndDialog 0.006
testOutputWithoutContent 0.008
testOutputwithoutDialog 0.006

AbstractDirectiveTest

testInitContentComponent 0.009
testBodyCheck 0.032

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.565
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.029
testShowAddButtonWhenMaxComponentsIsNotReached 0.046
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.043
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.047
testRenderAreaWithActivationStatusModified 0.042
testRenderSimpleBarWithoutAreaNode 0.043
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.025
testRenderSimpleBar 0.025
testDontShowAddButtonWhenMaxComponentsIsReached 0.039
testCreateAreaNodeSetToFalse 0.036
testCreateAreaNodeSetToTrue 0.028
testDontShowBarWhenAreaIsHasNoComponentType 0.026
testRenderNoBar 0.032

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.025
testRenderSimpleBar 0.036
testRenderWithDialog 0.025
testRenderComponentWithActivationStatusPublished 0.038

InitDirectiveTest

testRenderWithContent 0.029
testRenderWithContentAndDialog 0.022

PageDirectiveTest

testRenderWithContent 0.033
testRenderWithContentAndDialog 0.024

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.028

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.023
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.005
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.007

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.028
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.004
wrapContentMapForI18n 0.006
localizedLinksContainLinksToLocales 0.082
checkCurrentLanguage 0.007
localizedLinksMaintainSelectors 0.017
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.007
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.005

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.206
testComponentInheritance 0.027
testPropertyInheritanceWithInheritanceDisabled 0.028
testDisabledPropertyInheritance 0.034
testMultiLevelPropertyInheritance 0.029
testDoesNothingOnTopLevelPage 0.026
testResourcesInheritance 0.018
testPropertyInheritance 0.027

InspectorTest

dumpByte 0.075
dumpChar 0.007
dumpDate 0.004
dumpLong 0.002
dumpNode 0.013
dumpNull 0.002
dumpArray 0.003
dumpFloat 0.011
dumpShort 0.004
dumpSingleValueProperty 0.002
dumpCollection 0.002
dumpBoolean 0.002
dumpCalendar 0.002
dumpDouble 0.002
dumpObject 0.002
dumpString 0.004
dumpContentMap 0.004
dumpMultiValueProperty 0.002
dumpInteger 0.002
dumpMap 0.003

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 2.315
updateFrom55 0.735

NoScriptRendererTest

testRenderListOfComponents 0.01
testRenderSingleComponent 0.006

PlainTextRendererTest

testRenderInPreview 0.02
testRender 0.006

Failure Details

[Summary] [Package List] [Test Cases]


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