Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.763
info.magnolia.templating.freemarker 28 0 0 0 100% 1.668
info.magnolia.templating.renderers 4 0 0 0 100% 0.495
info.magnolia.templating.functions 182 0 0 0 100% 1.203
info.magnolia.templating.inspector 20 0 0 0 100% 0.176
info.magnolia.templating.module.setup 2 0 0 0 100% 3.032
info.magnolia.templating.inheritance 8 0 0 0 100% 0.192

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.038
AreaElementComponentsTest 5 0 0 0 100% 0.083
MarkupHelperTest 3 0 0 0 100% 0
AreaElementTest 27 0 0 0 100% 0.299
AbstractTemplateElementTest 8 0 0 2 75% 0.083
ComponentElementTest 10 0 0 0 100% 0.119
PageElementTest 4 0 0 0 100% 0.037
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.063
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.041

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
RenderableDefinitionModelTest 3 0 0 0 100% 0.058
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.58
InitDirectiveTest 2 0 0 0 100% 0.076
PageDirectiveTest 2 0 0 0 100% 0.101
AbstractDirectiveTest 2 0 0 0 100% 0.034
AreaDirectiveTest 14 0 0 0 100% 0.649
ComponentDirectiveTest 4 0 0 0 100% 0.17

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.396
PlainTextRendererTest 2 0 0 0 100% 0.099

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.063
TemplatingFunctionsTest 151 0 0 0 100% 1.126
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.014

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.034
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.014
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.01

InspectorTest

dumpByte 0.085
dumpChar 0.012
dumpDate 0.003
dumpLong 0.002
dumpNode 0.012
dumpNull 0.003
dumpArray 0.004
dumpFloat 0.004
dumpShort 0.002
dumpSingleValueProperty 0.002
dumpCollection 0.005
dumpBoolean 0.004
dumpCalendar 0.004
dumpDouble 0.003
dumpObject 0.003
dumpString 0.007
dumpContentMap 0.01
dumpMultiValueProperty 0.004
dumpInteger 0.002
dumpMap 0.005

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.036
testComponentInheritance 0.027
testPropertyInheritanceWithInheritanceDisabled 0.024
testDisabledPropertyInheritance 0.022
testMultiLevelPropertyInheritance 0.022
testDoesNothingOnTopLevelPage 0.02
testResourcesInheritance 0.02
testPropertyInheritance 0.021

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.001
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.006
wrapContentMapForI18n 0.009
localizedLinksContainLinksToLocales 0.014
checkCurrentLanguage 0.009
localizedLinksMaintainSelectors 0.01
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.007
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.007

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.58

InitDirectiveTest

testRenderWithContent 0.035
testRenderWithContentAndDialog 0.041

InitElementTest

testOutputContainsContent 0.008
testOutputContainsContentAndDialog 0.01
testOutputWithoutContent 0.009
testOutputwithoutDialog 0.011

AreaElementComponentsTest

testMaxComponentsNotSet 0.015
testShouldShowAddButtonTypeSingle 0.014
testMaxComponentsNotReached 0.01
testShouldShowAddButtonTypeNoComponent 0.029
testMaxComponentsReached 0.015

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AreaElementTest

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

NoScriptRendererTest

testRenderListOfComponents 0.384
testRenderSingleComponent 0.012

AbstractTemplateElementTest

testCurrentContent 0.013
testUsesDefaultBundleIfNotSpecified 0.015
testGetsCustomMessageCustomBundleWithPageTemplate 0.015
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.014
testDefaultMessageFromCustomBundleWithPageTemplate 0.015
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.011

PageDirectiveTest

testRenderWithContent 0.054
testRenderWithContentAndDialog 0.047

AbstractDirectiveTest

testInitContentComponent 0.007
testBodyCheck 0.027

ComponentElementTest

testRenderBeginAll 0.016
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.013
testRenderBeginWithEditable 0.012
testDontRenderCmsCommentsInPreviewMode 0.012
testRenderWithoutComment 0.015
testResolvePermissionsFromTemplate 0.011
testRenderBeginOnlyContent 0.01
testResolvePermissionsFromTemplateAvailability 0.01
testRenderCmsCommentsWhenBeeingInEditMode 0.01
testPostRender 0.01

TemplatingFunctionsTest

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

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 2.296
updateFrom55 0.736

PageElementTest

testOutputContainsContent 0.011
testOutputContainsContentAndDialog 0.008
testOutputWithoutContent 0.009
testOutputwithoutDialog 0.009

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.153
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.033
testShowAddButtonWhenMaxComponentsIsNotReached 0.04
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.042
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.039
testRenderAreaWithActivationStatusModified 0.039
testRenderSimpleBarWithoutAreaNode 0.04
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.037
testRenderSimpleBar 0.036
testDontShowAddButtonWhenMaxComponentsIsReached 0.036
testCreateAreaNodeSetToFalse 0.036
testCreateAreaNodeSetToTrue 0.061
testDontShowBarWhenAreaIsHasNoComponentType 0.028
testRenderNoBar 0.029

PlainTextRendererTest

testRenderInPreview 0.089
testRender 0.01

TemplatingFunctionsMetaDataTest

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

AreaElementCanRenderAreaTest

test1 0.013
test2 0.01
test3 0.009
test4 0.009
test5 0.012
test6 0.01

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.051
testRenderSimpleBar 0.044
testRenderWithDialog 0.038
testRenderComponentWithActivationStatusPublished 0.037

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.01
testSetAttributesInWebContext 0.011
testGetTargetContent 0.009
testGetActivationStatus 0.011

Failure Details

[Summary] [Package List] [Test Cases]


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