Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.065
info.magnolia.templating.freemarker 28 0 0 0 100% 1.054
info.magnolia.templating.renderers 4 0 0 0 100% 0.03
info.magnolia.templating.functions 182 0 0 0 100% 1.054
info.magnolia.templating.inspector 20 0 0 0 100% 0.147
info.magnolia.templating.module.setup 2 0 0 0 100% 2.068
info.magnolia.templating.inheritance 8 0 0 0 100% 0.319

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.311
AbstractTemplateElementTest 8 0 0 2 75% 0.13
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.15
AreaElementComponentsTest 5 0 0 0 100% 0.053
AreaElementTest 27 0 0 0 100% 0.264
ComponentElementTest 10 0 0 0 100% 0.087
InitElementTest 4 0 0 0 100% 0.032
MarkupHelperTest 3 0 0 0 100% 0
PageElementTest 4 0 0 0 100% 0.038

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
AbstractDirectiveTest 2 0 0 0 100% 0.045
AreaDirectiveTest 14 0 0 0 100% 0.752
ComponentDirectiveTest 4 0 0 0 100% 0.094
InitDirectiveTest 2 0 0 0 100% 0.046
PageDirectiveTest 2 0 0 0 100% 0.043
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.03
RenderableDefinitionModelTest 3 0 0 0 100% 0.044

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

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.114
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.011
TemplatingFunctionsTest 151 0 0 0 100% 0.929

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.284
testSetAttributesInWebContext 0.008
testGetTargetContent 0.011
testGetActivationStatus 0.008

AbstractTemplateElementTest

testCurrentContent 0.029
testUsesDefaultBundleIfNotSpecified 0.061
testGetsCustomMessageCustomBundleWithPageTemplate 0.012
testUsesDefaultBundleIfNoMetadata 0
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph 0.008
testDefaultMessageFromCustomBundleWithPageTemplate 0.011
testUsesDefaultBundleIfNotRenderableDefinition 0
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph 0.009

AreaElementCanRenderAreaTest

test1 0.011
test2 0.022
test3 0.008
test4 0.009
test5 0.093
test6 0.007

AreaElementComponentsTest

testMaxComponentsNotSet 0.011
testShouldShowAddButtonTypeSingle 0.007
testMaxComponentsNotReached 0.008
testShouldShowAddButtonTypeNoComponent 0.015
testMaxComponentsReached 0.012

AreaElementTest

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

ComponentElementTest

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

InitElementTest

testOutputContainsContent 0.009
testOutputContainsContentAndDialog 0.006
testOutputWithoutContent 0.009
testOutputwithoutDialog 0.008

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.011
testOutputContainsContentAndDialog 0.009
testOutputWithoutContent 0.01
testOutputwithoutDialog 0.008

AbstractDirectiveTest

testInitContentComponent 0.009
testBodyCheck 0.036

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.427
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.035
testShowAddButtonWhenMaxComponentsIsNotReached 0.03
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.031
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.024
testRenderAreaWithActivationStatusModified 0.036
testRenderSimpleBarWithoutAreaNode 0.024
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.024
testRenderSimpleBar 0.02
testDontShowAddButtonWhenMaxComponentsIsReached 0.021
testCreateAreaNodeSetToFalse 0.021
testCreateAreaNodeSetToTrue 0.022
testDontShowBarWhenAreaIsHasNoComponentType 0.019
testRenderNoBar 0.018

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.02
testRenderSimpleBar 0.028
testRenderWithDialog 0.027
testRenderComponentWithActivationStatusPublished 0.019

InitDirectiveTest

testRenderWithContent 0.018
testRenderWithContentAndDialog 0.028

PageDirectiveTest

testRenderWithContent 0.023
testRenderWithContentAndDialog 0.02

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.03

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.024
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.006
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.014

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.01
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.008
wrapContentMapForI18n 0.005
localizedLinksContainLinksToLocales 0.073
checkCurrentLanguage 0.004
localizedLinksMaintainSelectors 0.005
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.004
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.005

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.161
testComponentInheritance 0.026
testPropertyInheritanceWithInheritanceDisabled 0.026
testDisabledPropertyInheritance 0.022
testMultiLevelPropertyInheritance 0.027
testDoesNothingOnTopLevelPage 0.023
testResourcesInheritance 0.017
testPropertyInheritance 0.017

InspectorTest

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

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_6 1.595
updateFrom55 0.473

NoScriptRendererTest

testRenderListOfComponents 0.009
testRenderSingleComponent 0.007

PlainTextRendererTest

testRenderInPreview 0.009
testRender 0.005

Failure Details

[Summary] [Package List] [Test Cases]


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