Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
322 0 0 2 99.379% 5.157

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.088
info.magnolia.templating.freemarker 28 0 0 0 100% 0.367
info.magnolia.templating.renderers 4 0 0 0 100% 0.035
info.magnolia.templating.functions 188 0 0 0 100% 0.84
info.magnolia.templating.inspector 20 0 0 0 100% 0.082
info.magnolia.templating.module.setup 3 0 0 0 100% 2.454
info.magnolia.templating.inheritance 8 0 0 0 100% 0.291

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.505
AbstractTemplateElementTest 8 0 0 2 75% 0.096
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.131
AreaElementComponentsTest 5 0 0 0 100% 0.041
AreaElementTest 27 0 0 0 100% 0.215
ComponentElementTest 10 0 0 0 100% 0.057
InitElementTest 4 0 0 0 100% 0.021
MarkupHelperTest 3 0 0 0 100% 0
PageElementTest 4 0 0 0 100% 0.022

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
AbstractDirectiveTest 2 0 0 0 100% 0.024
AreaDirectiveTest 14 0 0 0 100% 0.247
ComponentDirectiveTest 4 0 0 0 100% 0.035
InitDirectiveTest 2 0 0 0 100% 0.012
PageDirectiveTest 2 0 0 0 100% 0.01
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.006
RenderableDefinitionModelTest 3 0 0 0 100% 0.033

info.magnolia.templating.renderers

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

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
SiblingsHelperTest 6 0 0 0 100% 0.036
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.087
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.009
TemplatingFunctionsTest 151 0 0 0 100% 0.708

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

Class Tests Errors Failures Skipped Success Rate Time
TemplatingModuleVersionHandlerTest 3 0 0 0 100% 2.454

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.482
testSetAttributesInWebContext 0.007
testGetTargetContent 0.008
testGetActivationStatus 0.008

AbstractTemplateElementTest

testCurrentContent 0.022
testUsesDefaultBundleIfNotSpecified 0.04
testGetsCustomMessageCustomBundleWithPageTemplate 0.01
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.008
testDefaultMessageFromCustomBundleWithPageTemplate 0.008
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.008

AreaElementCanRenderAreaTest

test1 0.011
test2 0.021
test3 0.007
test4 0.006
test5 0.079
test6 0.007

AreaElementComponentsTest

testMaxComponentsNotSet 0.011
testShouldShowAddButtonTypeSingle 0.007
testMaxComponentsNotReached 0.007
testShouldShowAddButtonTypeNoComponent 0.006
testMaxComponentsReached 0.01

AreaElementTest

testBeginWithConfFromTemplateDefinition 0.011
dontCreateAreaNodeWhenNodeIsProtected 0.009
testBeginWithEditable 0.007
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.006
testEndWithAllowedInheritButNullInheritConfig 0.006
areaElementDoesNotOverrideSettingsInOriginalAreaDefinition 0.006
testEndWithConfFromTemplateDefinition 0.006
testBeginCreateNodeArea 0.007
testDontRenderCmsCommentsInPreviewMode 0.006
testBeginSimple 0.006
testUseAreaI18nBaseNameIfPossible 0.007
testDoNotFailOnNPEDuringCanRenderAreaScript 0.038
testSingleAreaWithMoreComponentsShouldNotFail 0.008
testBeginWithInheritence 0.007
testResolveTemplateDefinitionConsidersVariation 0.008
doReturnAreaNodeIfNodeIsProtectedButAreaExists 0.008
areaDefinitionRenderTypeIsSetToNoScriptIfTemplateScriptIsNotSet 0.006
areaDefinitionRenderTypeIsInheritedFromTemplateDefinition 0.005
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified 0.006
testBeginWithCreateAreaNodeAttribute 0.006
testAvailableComponentsForSuperuser 0.005
testRenderCmsCommentsWhenBeeingInEditMode 0.012
testBeginWithCreateAreaNodeAttributeIsNotSetFallbackToDefaultValueTrue 0.006
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled 0.006
testBeginGetContentFromParent 0.005
tryToCreateAreaNode 0.006
testAvailableComponentsForEditor 0.006

ComponentElementTest

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

InitElementTest

testOutputContainsContent 0.006
testOutputContainsContentAndDialog 0.005
testOutputWithoutContent 0.005
testOutputwithoutDialog 0.005

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.006
testOutputContainsContentAndDialog 0.005
testOutputWithoutContent 0.006
testOutputwithoutDialog 0.005

AbstractDirectiveTest

testInitContentComponent 0.005
testBodyCheck 0.019

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.144
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.009
testShowAddButtonWhenMaxComponentsIsNotReached 0.008
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.008
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.009
testRenderAreaWithActivationStatusModified 0.008
testRenderSimpleBarWithoutAreaNode 0.007
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.007
testRenderSimpleBar 0.008
testDontShowAddButtonWhenMaxComponentsIsReached 0.008
testCreateAreaNodeSetToFalse 0.008
testCreateAreaNodeSetToTrue 0.007
testDontShowBarWhenAreaIsHasNoComponentType 0.009
testRenderNoBar 0.007

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.017
testRenderSimpleBar 0.008
testRenderWithDialog 0.005
testRenderComponentWithActivationStatusPublished 0.005

InitDirectiveTest

testRenderWithContent 0.006
testRenderWithContentAndDialog 0.006

PageDirectiveTest

testRenderWithContent 0.005
testRenderWithContentAndDialog 0.005

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.006

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.023
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.005
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.005

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.013
testCanTellPosition 0.004
testCanTellIfFirstWhenInitializingWithFirst 0.005
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.004
testCanTellIfLastWhenInitializingWith 0.005
testCanTellIfLastAfterNavigating 0.005

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.042
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.004
wrapContentMapForI18n 0.005
localizedLinksContainLinksToLocales 0.018
checkCurrentLanguage 0.004
localizedLinksMaintainSelectors 0.005
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.005
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.004

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.163
testComponentInheritance 0.023
testPropertyInheritanceWithInheritanceDisabled 0.021
testDisabledPropertyInheritance 0.019
testMultiLevelPropertyInheritance 0.019
testDoesNothingOnTopLevelPage 0.017
testResourcesInheritance 0.014
testPropertyInheritance 0.015

InspectorTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 1.187
testInstallFrom4_4_6 0.814
updateFrom55 0.453

NoScriptRendererTest

testRenderListOfComponents 0.008
testRenderSingleComponent 0.006

PlainTextRendererTest

testRenderInPreview 0.016
testRender 0.005

Failure Details

[Summary] [Package List] [Test Cases]


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