Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
316 0 0 2 99.367% 4.971

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 67 0 0 2 97.015% 0.452
info.magnolia.templating.freemarker 26 0 0 0 100% 0.422
info.magnolia.templating.renderers 4 0 0 0 100% 0.605
info.magnolia.templating.functions 188 0 0 0 100% 0.724
info.magnolia.templating.inspector 20 0 0 0 100% 0.126
info.magnolia.templating.module.setup 3 0 0 0 100% 2.531
info.magnolia.templating.inheritance 8 0 0 0 100% 0.111

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
AreaElementComponentsTest 5 0 0 0 100% 0.039
MarkupHelperTest 3 0 0 0 100% 0.001
AreaElementTest 27 0 0 0 100% 0.212
AbstractTemplateElementTest 8 0 0 2 75% 0.046
ComponentElementTest 10 0 0 0 100% 0.068
PageElementTest 4 0 0 0 100% 0.024
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.04
AbstractContentTemplatingElementTest 4 0 0 0 100% 0.022

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
RenderableDefinitionModelTest 3 0 0 0 100% 0.028
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.131
PageDirectiveTest 2 0 0 0 100% 0.018
AbstractDirectiveTest 2 0 0 0 100% 0.02
AreaDirectiveTest 14 0 0 0 100% 0.19
ComponentDirectiveTest 4 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.531
PlainTextRendererTest 2 0 0 0 100% 0.074

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.037
SiblingsHelperTest 6 0 0 0 100% 0.021
TemplatingFunctionsTest 151 0 0 0 100% 0.653
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.013

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.018
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.005
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.005

InspectorTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.016
testComponentInheritance 0.014
testPropertyInheritanceWithInheritanceDisabled 0.016
testDisabledPropertyInheritance 0.014
testMultiLevelPropertyInheritance 0.014
testDoesNothingOnTopLevelPage 0.012
testResourcesInheritance 0.014
testPropertyInheritance 0.011

TemplatingFunctionsI18nTest

wrapNodeForI18n 0
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.004
wrapContentMapForI18n 0.004
localizedLinksContainLinksToLocales 0.008
checkCurrentLanguage 0.005
localizedLinksMaintainSelectors 0.006
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.005
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.005

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.131

AreaElementComponentsTest

testMaxComponentsNotSet 0.009
testShouldShowAddButtonTypeSingle 0.006
testMaxComponentsNotReached 0.007
testShouldShowAddButtonTypeNoComponent 0.005
testMaxComponentsReached 0.011

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

AreaElementTest

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

NoScriptRendererTest

testRenderListOfComponents 0.394
testRenderSingleComponent 0.008

AbstractTemplateElementTest

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

PageDirectiveTest

testRenderWithContent 0.009
testRenderWithContentAndDialog 0.009

AbstractDirectiveTest

testInitContentComponent 0.004
testBodyCheck 0.016

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.003
testCanTellPosition 0.003
testCanTellIfFirstWhenInitializingWithFirst 0.004
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.004
testCanTellIfLastWhenInitializingWith 0.004
testCanTellIfLastAfterNavigating 0.003

ComponentElementTest

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

TemplatingFunctionsTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 1.289
testInstallFrom4_4_6 0.763
updateFrom55 0.478

PageElementTest

testOutputContainsContent 0.006
testOutputContainsContentAndDialog 0.006
testOutputWithoutContent 0.006
testOutputwithoutDialog 0.006

AreaDirectiveTest

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

PlainTextRendererTest

testRenderInPreview 0.067
testRender 0.007

TemplatingFunctionsMetaDataTest

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

AreaElementCanRenderAreaTest

test1 0.007
test2 0.013
test3 0.001
test4 0.006
test5 0.007
test6 0.006

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.01
testRenderSimpleBar 0.009
testRenderWithDialog 0.008
testRenderComponentWithActivationStatusPublished 0.008

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.004
testSetAttributesInWebContext 0.005
testGetTargetContent 0.006
testGetActivationStatus 0.006

Failure Details

[Summary] [Package List] [Test Cases]


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