Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.456
info.magnolia.templating.freemarker 28 0 0 0 100% 0.495
info.magnolia.templating.renderers 4 0 0 0 100% 0.047
info.magnolia.templating.functions 188 0 0 0 100% 1.127
info.magnolia.templating.inspector 20 0 0 0 100% 0.105
info.magnolia.templating.module.setup 3 0 0 0 100% 3.105
info.magnolia.templating.inheritance 8 0 0 0 100% 0.352

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.603
AbstractTemplateElementTest 8 0 0 2 75% 0.126
AreaElementCanRenderAreaTest 6 0 0 0 100% 0.167
AreaElementComponentsTest 5 0 0 0 100% 0.064
AreaElementTest 27 0 0 0 100% 0.327
ComponentElementTest 10 0 0 0 100% 0.094
InitElementTest 4 0 0 0 100% 0.031
MarkupHelperTest 3 0 0 0 100% 0
PageElementTest 4 0 0 0 100% 0.044

info.magnolia.templating.freemarker

Class Tests Errors Failures Skipped Success Rate Time
AbstractDirectiveTest 2 0 0 0 100% 0.033
AreaDirectiveTest 14 0 0 0 100% 0.324
ComponentDirectiveTest 4 0 0 0 100% 0.055
InitDirectiveTest 2 0 0 0 100% 0.016
PageDirectiveTest 2 0 0 0 100% 0.014
ReadOnlyComponentDirectiveTest 1 0 0 0 100% 0.007
RenderableDefinitionModelTest 3 0 0 0 100% 0.046

info.magnolia.templating.renderers

Class Tests Errors Failures Skipped Success Rate Time
NoScriptRendererTest 2 0 0 0 100% 0.017
PlainTextRendererTest 2 0 0 0 100% 0.03

info.magnolia.templating.functions

Class Tests Errors Failures Skipped Success Rate Time
SiblingsHelperTest 6 0 0 0 100% 0.087
TemplatingFunctionsI18nTest 8 0 0 0 100% 0.075
TemplatingFunctionsMetaDataTest 23 0 0 0 100% 0.01
TemplatingFunctionsTest 151 0 0 0 100% 0.955

info.magnolia.templating.inspector

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

info.magnolia.templating.module.setup

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

info.magnolia.templating.inheritance

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext 0.568
testSetAttributesInWebContext 0.012
testGetTargetContent 0.008
testGetActivationStatus 0.015

AbstractTemplateElementTest

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

AreaElementCanRenderAreaTest

test1 0.014
test2 0.03
test3 0.009
test4 0.011
test5 0.094
test6 0.009

AreaElementComponentsTest

testMaxComponentsNotSet 0.013
testShouldShowAddButtonTypeSingle 0.008
testMaxComponentsNotReached 0.009
testShouldShowAddButtonTypeNoComponent 0.017
testMaxComponentsReached 0.017

AreaElementTest

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

ComponentElementTest

testRenderBeginAll 0.012
testConditionsForOpeningAndClosingCommentsHaveToBeInSynch 0.011
testRenderBeginWithEditable 0.007
testDontRenderCmsCommentsInPreviewMode 0.008
testRenderWithoutComment 0.008
testResolvePermissionsFromTemplate 0.008
testRenderBeginOnlyContent 0.016
testResolvePermissionsFromTemplateAvailability 0.009
testRenderCmsCommentsWhenBeeingInEditMode 0.008
testPostRender 0.007

InitElementTest

testOutputContainsContent 0.009
testOutputContainsContentAndDialog 0.008
testOutputWithoutContent 0.007
testOutputwithoutDialog 0.007

MarkupHelperTest

testNullContentAsEmptyString 0
testParam 0
testParamsKeepCamelCaseNotation 0

PageElementTest

testOutputContainsContent 0.018
testOutputContainsContentAndDialog 0.009
testOutputWithoutContent 0.009
testOutputwithoutDialog 0.008

AbstractDirectiveTest

testInitContentComponent 0.009
testBodyCheck 0.024

AreaDirectiveTest

testRenderAreaWithActivationStatusPublished 0.182
testDontShowAddButtonWhenMaxComponentsInParameterIsReached 0.012
testShowAddButtonWhenMaxComponentsIsNotReached 0.012
testCreateAreaNodeIsNotSetFallbackToDefaultValueTrue 0.012
testCreateAreaNodeIsNotSetInDirectiveButIsSetInAreaDefinition 0.01
testRenderAreaWithActivationStatusModified 0.01
testRenderSimpleBarWithoutAreaNode 0.009
testShowAddButtonWhenMaxComponentsInParameterIsNotReached 0.012
testRenderSimpleBar 0.01
testDontShowAddButtonWhenMaxComponentsIsReached 0.01
testCreateAreaNodeSetToFalse 0.011
testCreateAreaNodeSetToTrue 0.011
testDontShowBarWhenAreaIsHasNoComponentType 0.013
testRenderNoBar 0.01

ComponentDirectiveTest

testRenderComponentWithActivationStatusModified 0.01
testRenderSimpleBar 0.023
testRenderWithDialog 0.014
testRenderComponentWithActivationStatusPublished 0.008

InitDirectiveTest

testRenderWithContent 0.008
testRenderWithContentAndDialog 0.008

PageDirectiveTest

testRenderWithContent 0.007
testRenderWithContentAndDialog 0.007

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment 0.007

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters 0.034
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties 0.006
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded 0.006

SiblingsHelperTest

testCanTellIfFirstAfterNavigating 0.016
testCanTellPosition 0.006
testCanTellIfFirstWhenInitializingWithFirst 0.006
testCanTellIfLastEvenIfThereAreOtherNodesOfAnotherType 0.047
testCanTellIfLastWhenInitializingWith 0.007
testCanTellIfLastAfterNavigating 0.005

TemplatingFunctionsI18nTest

wrapNodeForI18n 0.012
localizedLinksAreEmptyWhenContentSupportHasNoLocales 0.005
wrapContentMapForI18n 0.005
localizedLinksContainLinksToLocales 0.029
checkCurrentLanguage 0.006
localizedLinksMaintainSelectors 0.007
localizedLinksAreEmptyWhenContentSupportIsDeactivated 0.005
localizedLinksMaintainSelectorsIncludingDefaultExtension 0.006

TemplatingFunctionsMetaDataTest

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

TemplatingFunctionsTest

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

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision 0.194
testComponentInheritance 0.026
testPropertyInheritanceWithInheritanceDisabled 0.024
testDisabledPropertyInheritance 0.024
testMultiLevelPropertyInheritance 0.019
testDoesNothingOnTopLevelPage 0.029
testResourcesInheritance 0.019
testPropertyInheritance 0.017

InspectorTest

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

TemplatingModuleVersionHandlerTest

updateFrom561 1.496
testInstallFrom4_4_6 0.996
updateFrom55 0.613

NoScriptRendererTest

testRenderListOfComponents 0.009
testRenderSingleComponent 0.008

PlainTextRendererTest

testRenderInPreview 0.029
testRender 0.001

Failure Details

[Summary] [Package List] [Test Cases]


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