Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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% 0.477
info.magnolia.templating.freemarker 28 0 0 0 100% 0.468
info.magnolia.templating.renderers 4 0 0 0 100% 0.604
info.magnolia.templating.functions 188 0 0 0 100% 0.799
info.magnolia.templating.inspector 20 0 0 0 100% 0.104
info.magnolia.templating.module.setup 3 0 0 0 100% 2.975
info.magnolia.templating.inheritance 8 0 0 0 100% 0.115

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
InitElementTest 4 0 0 0 100% 0.024
AreaElementComponentsTest 5 0 0 0 100% 0.038
MarkupHelperTest 3 0 0 0 100% 0
AreaElementTest 27 0 0 0 100% 0.209
AbstractTemplateElementTest 8 0 0 2 75% 0.046
ComponentElementTest 10 0 0 0 100% 0.067
PageElementTest 4 0 0 0 100% 0.023
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.038
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.032

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
RenderableDefinitionModelTest 3 0 0 0 100% 0.033
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.141
InitDirectiveTest 2 0 0 0 100% 0.017
PageDirectiveTest 2 0 0 0 100% 0.018
AbstractDirectiveTest 2 0 0 0 100% 0.023
AreaDirectiveTest 14 0 0 0 100% 0.199
ComponentDirectiveTest 4 0 0 0 100% 0.037

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.52
PlainTextRendererTest 2 0 0 0 100% 0.084

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.042
SiblingsHelperTest 6 0 0 0 100% 0.038
TemplatingFunctionsTest 151 0 0 0 100% 0.708
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.011

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.021
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.006
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.006

InspectorTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.018
testComponentInheritance 0.016
testPropertyInheritanceWithInheritanceDisabled 0.016
testDisabledPropertyInheritance 0.014
testMultiLevelPropertyInheritance 0.013
testDoesNothingOnTopLevelPage 0.013
testResourcesInheritance 0.013
testPropertyInheritance 0.012

TemplatingFunctionsI18nTest

wrapNodeForI18n 0
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.006
wrapContentMapForI18n 0.005
localizedLinksContainLinksToLocales 0.009
checkCurrentLanguage 0.006
localizedLinksMaintainSelectors 0.005
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.005
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.006

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.141

InitDirectiveTest

testRenderWithContent 0.008
testRenderWithContentAndDialog 0.009

InitElementTest

testOutputContainsContent 0.006
testOutputContainsContentAndDialog 0.006
testOutputWithoutContent 0.006
testOutputwithoutDialog 0.006

AreaElementComponentsTest

testMaxComponentsNotSet 0.009
testShouldShowAddButtonTypeSingle 0.008
testMaxComponentsNotReached 0.007
testShouldShowAddButtonTypeNoComponent 0.006
testMaxComponentsReached 0.008

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AreaElementTest

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

NoScriptRendererTest

testRenderListOfComponents 0.511
testRenderSingleComponent 0.009

AbstractTemplateElementTest

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

PageDirectiveTest

testRenderWithContent 0.01
testRenderWithContentAndDialog 0.008

AbstractDirectiveTest

testInitContentComponent 0.004
testBodyCheck 0.019

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.006
testCanTellPosition 0.006
testCanTellIfFirstWhenInitializingWithFirst 0.007
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.007
testCanTellIfLastWhenInitializingWith 0.006
testCanTellIfLastAfterNavigating 0.006

ComponentElementTest

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

TemplatingFunctionsTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 1.482
testInstallFrom4_4_6 0.943
updateFrom55 0.55

PageElementTest

testOutputContainsContent 0.005
testOutputContainsContentAndDialog 0.006
testOutputWithoutContent 0.007
testOutputwithoutDialog 0.005

AreaDirectiveTest

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

PlainTextRendererTest

testRenderInPreview 0.068
testRender 0.016

TemplatingFunctionsMetaDataTest

testDeprecatedActivatorId 0.009
testDeprecatedActivated 0
testDeprecatedLastAction 0
testDeprecatedTemplate 0
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
nonExistingPropertyDoesNotThrowNPE 0
testVersionableComment 0
testDeprecatedAuthorId 0
testCreatedBy 0.001
testDeletedComment 0
testDeprecatedTemplateType 0

AreaElementCanRenderAreaTest

test1 0.005
test2 0.007
test3 0.006
test4 0.007
test5 0.007
test6 0.006

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.012
testRenderSimpleBar 0.008
testRenderWithDialog 0.008
testRenderComponentWithActivationStatusPublished 0.009

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.008
testSetAttributesInWebContext 0.008
testGetTargetContent 0.008
testGetActivationStatus 0.008

Failure Details

[Summary] [Package List] [Test Cases]


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