magnolia-templating Version: 5.0.3 Last Published: Aug 21, 2013

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
22530496.889%5.176

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


PackageTestsErrors FailuresSkippedSuccess RateTime
info.magnolia.templating.freemarker1730082.353%0.786
info.magnolia.templating.module.setup1000100%2.446
info.magnolia.templating.functions144000100%0.622
info.magnolia.templating.elements5100492.157%1.27
info.magnolia.templating.renderers4000100%0.032
info.magnolia.templating.inheritance8000100%0.02

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

info.magnolia.templating.freemarker

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractDirectiveTest2000100%0.03
AreaDirectiveTest6000100%0.639
ComponentDirectiveTest2000100%0.058
InitDirectiveTest33000%0.002
ReadOnlyComponentDirectiveTest1000100%0.028
RenderableDefinitionModelTest3000100%0.029

info.magnolia.templating.module.setup

ClassTestsErrors FailuresSkippedSuccess RateTime
TemplatingModuleVersionHandlerTest1000100%2.446

info.magnolia.templating.functions

ClassTestsErrors FailuresSkippedSuccess RateTime
TemplatingFunctionsMetaDataTest22000100%0.011
TemplatingFunctionsTest122000100%0.611

info.magnolia.templating.elements

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractContentTemplatingElementTest3000100%0.574
AbstractTemplateElementTest800275%0.165
AreaElementComponentsTest5000100%0.113
AreaElementTest18000100%0.276
ComponentElementTest7000100%0.083
InitElementTest700271.429%0.058
MarkupHelperTest3000100%0.001

info.magnolia.templating.renderers

ClassTestsErrors FailuresSkippedSuccess RateTime
NoScriptRendererTest2000100%0.019
PlainTextRendererTest2000100%0.013

info.magnolia.templating.inheritance

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultInheritanceContentDecoratorTest8000100%0.02

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentTemplatingElementTest

testRestoreAttributesInWebContext0.551
testSetAttributesInWebContext0.011
testGetTargetContent0.012

AbstractTemplateElementTest

testCurrentContent0.021
testUsesDefaultBundleIfNotSpecified0.051
testGetsCustomMessageCustomBundleWithPageTemplate0.019
testUsesDefaultBundleIfNoMetadata0.02
TODO: check expectation here
testGetsCustomMessageCustomBundleWithParagraph0.015
testDefaultMessageFromCustomBundleWithPageTemplate0.013
testUsesDefaultBundleIfNotRenderableDefinition0.014
TODO: check expectation here
testDefaultMessageFromCustomBundleWithParagraph0.012

AreaElementComponentsTest

testMaxComponentsNotSet0.047
testShouldShowAddButtonTypeSingle0.014
testMaxComponentsNotReached0.02
testShouldShowAddButtonTypeNoComponent0.014
testMaxComponentsReached0.018

AreaElementTest

testBeginWithConfFromTemplateDefinition0.017
testBeginWithEditable0.011
testEndWithAllowedInheritButNullInheritConfig0.01
testEndWithConfFromTemplateDefinition0.01
testDontRenderCmsCommentsInPreviewMode0.008
testBeginSimple0.01
testUseAreaI18nBaseNameIfPossible0.017
testDoNotFailOnNPEDuringCanRenderAreaScript0.064
testBeginWithInheritence0.01
testTryToCreateAreaNode0.013
testUseParentI18nBaseNameIfAreaBaseNameIsNotSpecified0.013
testAvailableComponentsForSuperuser0.012
testRenderCmsCommentsWhenBeeingInEditMode0.01
testCanRenderAreaScript0.026
testBeginCreateNode0.013
testListAndSingleTypeComponentsAreNotRenderedIfTheyHaventAnyChildComponentsAndRenderingOfTheseAreasIsDisabled0.013
testBeginGetContentFromParent0.01
testAvailableComponentsForEditor0.009

ComponentElementTest

testRenderBeginAll0.011
testRenderBeginWithEditable0.011
testRenderWithoutComment0.016
testResolvePermissionsFromTemplate0.012
testRenderBeginOnlyContent0.013
testResolvePermissionsFromTemplateAvailability0.012
testPostRender0.008

InitElementTest

testOutputEndPart0.01
testOutputContainsContent0.008
testOutputContainsGwtLocaleMetaProperty0.008
testOutputContainsContentAndDialog0.008
testOutputContainsPageEditorStyles0.008
See SCRUM-1239. Will most likely be removed in 5.0
testOutputContainsPageEditorJavascript0.008
See SCRUM-1239. Will most likely be removed in 5.0
testOutputWithoutContent0.008

MarkupHelperTest

testNullContentAsEmptyString0.001
testParam0
testParamsKeepCamelCaseNotation0

AbstractDirectiveTest

testInitContentComponent0.011
testBodyCheck0.019

AreaDirectiveTest

testShowAddButtonWhenMaxComponentsIsNotReached0.484
testRenderSimpleBarWithoutAreaNode0.043
testRenderSimpleBar0.033
testDontShowAddButtonWhenMaxComponentsIsReached0.026
testDontShowBarWhenAreaIsHasNoComponentType0.029
testRenderNoBar0.024

ComponentDirectiveTest

testRenderSimpleBar0.028
testRenderWithDialog0.03

InitDirectiveTest

testRenderWithContent0.002
Unresolved compilation problems: The type org.hamcrest.core.CombinableMatcher$CombinableBothMatcher cannot be resolved. It is indirectly referenced from required .class files The type org.hamcrest.core.CombinableMatcher$CombinableEitherMatcher cannot be resolved. It is indirectly referenced from required .class files
testRenderWithContentAndDialog0
Unresolved compilation problems: The type org.hamcrest.core.CombinableMatcher$CombinableBothMatcher cannot be resolved. It is indirectly referenced from required .class files The type org.hamcrest.core.CombinableMatcher$CombinableEitherMatcher cannot be resolved. It is indirectly referenced from required .class files
testRenderSimpleBar0
Unresolved compilation problems: The type org.hamcrest.core.CombinableMatcher$CombinableBothMatcher cannot be resolved. It is indirectly referenced from required .class files The type org.hamcrest.core.CombinableMatcher$CombinableEitherMatcher cannot be resolved. It is indirectly referenced from required .class files

ReadOnlyComponentDirectiveTest

testRenderComponentWithoutComment0.028

RenderableDefinitionModelTest

testRenderableDefinitionPropertiesHaveHigherPriorityThanParameters0.013
testRenderableDefinitionParametersAreAvailableAsTopLevelProperties0.008
testRenderableDefinitionPropertiesAreStillAvailableIfReallyNeeded0.008

TemplatingFunctionsMetaDataTest

testDeprecatedActivatorId0.003
testDeprecatedActivated0.001
testDeprecatedLastAction0.001
testDeprecatedTemplate0
testLastModified0.001
testTemplate0
testDeprecatedTitle0.001
testActivationStatus0
testLastModifiedBy0.001
testDeprecatedCreationDate0
testLastActivated0
testDeletedBy0.001
testUnknownPropertyThrowsException0
testCreated0
testDeprecatedLastModified0.001
testLastActivatedBy0.001
testDeleted0
testVersionableComment0
testDeprecatedAuthorId0
testCreatedBy0
testDeletedComment0
testDeprecatedTemplateType0

TemplatingFunctionsTest

testExternalLinkFromNodeNoProtocol0.006
testNonExistingInheritedRelPathShouldReturnNull0.011
testAncestorsFromContentMapDepth10.006
testPageFromComponentNodeDepth20.005
testPageFromComponentNodeDepth30.005
testGetNodeByPath0.006
testIsAuthorInstanceTrue0.004
testRootPageFromPageContentMapDepth10.004
testRootPageFromPageContentMapDepth20.005
testRootPageFromPageContentMapDepth30.005
testGetNodeById0.005
testLinkForIdentifierFromNodeDepth10.004
testLinkForIdentifierFromNodeDepth20.004
testParentComponentFromPageNode0.004
testAsContentMapList0.005
testLinkFromContentMapDepth10.01
testLinkFromContentMapDepth20.004
testAncestorPagesFromComponentNodeDepth40.005
testPageContentMapHavingNoParentPageShouldBeNull0.005
testEncodeNode0.012
testPageFromNodeDepth10.004
testPageFromNodeDepth20.005
testIsEditModeAuthorAndPreview0.006
testPageFromRootShouldBeNull0.005
testAncestorsFromNodeDepth10.005
testExternalLinkTitleFromContentMapWithTitle0.005
testAncestorsFromComponentNodeDepth20.004
testAncestorPagesFromComponentContentMapDepth40.005
testLanguage0.004
testParentFromRootNodeShouldBeNull0.007
testEncodeContent0.005
testIsEditModeAuthorAndNotPreview0.004
testAsContentMapfromNode0.004
testRootPageFromPageNodeDepth10.004
testRootPageFromPageNodeDepth20.005
testRootPageFromPageNodeDepth30.004
testChildrenFromNode0.007
testSiblingsContentMap0.005
testPageContentMapFromRootShouldBeNull0.004
testIsAuthorInstanceFalse0.004
testLinkForPropertyFromNodeDepth10.004
testLinkForPropertyFromNodeDepth20.005
testAncestorsFromComponentContentMapDepth20.005
testIsEditModeNotAuthorAndNotPreview0.004
testAncestorPagesFromSubComponentNodeDepth50.005
testRootFromPageContentMapDepth10.004
testRootFromPageContentMapDepth20.004
testRootFromPageContentMapDepth30.005
testChildrenFromNodeAndTypePage0.005
testExternalLinkTitleFromNodeNoTitleSet0.005
testRootFromComponentNodeDepth10.006
testRootFromComponentNodeDepth20.005
testAncestorPagesFromSubComponentConentMapDepth50.005
testGetContentByIdentifier0.004
testNodeIsInherited0.005
testCreateHtmlAttributeNoValue0.004
testInheritFromContentMapOnlyContentMap0.005
testPageHavingNoParentPageShouldBeNull0.005
testParentPageFromPageContentMap0.007
testChildrenFromContentMapAndTypeComponent0.006
testExternalLinkTitleFromNodeWithTitle0.005
testAncestorsFromSubComponentConentMapDepth50.006
testRootPageFromComponentNodeDepth10.006
testRootPageFromComponentNodeDepth20.005
testParentComponentFromPageContentMap0.005
testParentPageFromPageNode0.006
testRootPageFromComponentContentMapDepth10.006
testRootPageFromComponentContentMapDepth20.006
testAncestorPagesFromNodeDepth10.006
testAncestorPagesFromContentMapDepth10.006
testParentFromRootContentMapShouldBeNull0.005
testParentPageFromComponentNodeDepth10.005
testParentPageFromComponentNodeDepth20.005
testParentPageFromComponentNodeDepth30.005
testRootFromPageNodeDepth10.005
testRootFromPageNodeDepth20.005
testRootFromPageNodeDepth30.005
testExternalLinkTitleFromContentMapNoTitleSet0.006
testSiblings0.005
testInheritFromNode0.005
testInheritFromContentMap0.005
testContentMapIsInherited0.005
testIsEditModeNotAuthorAndPreview0.005
testInheritFromNodeOnlyContent0.005
testAncestorsFromSubComponentNodeDepth50.004
testChildrenFromContentMapAndTypePage0.005
testParentFromNodeDepth10.004
testParentFromNodeDepth20.004
testParentPageFromContentMapDepth10.005
testAsNodeList0.005
testParentPageFromComponentContentMapDepth10.006
testParentPageFromComponentContentMapDepth20.006
testParentPageFromComponentContentMapDepth30.004
testInheritedNodeIsUnwrapped0.005
testCreateHtmlAttribute0.004
testContentMapIsFromCurrentPage0.005
testGetContentByPath0.004
testPageFromComponentContentMapDepth20.005
testPageFromComponentContentMapDepth30.005
testPageFromContentMapDepth10.006
testPageFromContentMapDepth20.005
testParentFromContentMapDepth10.005
testParentFromContentMapDepth20.005
testIsPublicInstanceTrue0.004
testAsJCRNodeFromContentMap0.004
testExternalLinkFromContentMapNoProtocol0.004
testChildrenFromNodeAndTypeComponent0.005
testNonExistingInheritedPropertyShouldReturnNull0.004
testExternalLinkFromNodeWithProtocol0.004
testInheritFromNodeNoContent0.004
testExternalLinkFromContentMapWithProtocol0.004
testIsPreviewModeTrue0.004
testRootFromComponentContentMapDepth10.004
testRootFromComponentContentMapDepth20.004
testLinkFromNodeDepth10.004
testLinkFromNodeDepth20.004
testChildrenFromContentMap0.004
testIsPreviewModeFalse0.004
testIsPublicInstanceFalse0.004
testGetContentById0.005
testParentPageFromNodeDepth10.007
testNodeIsFromCurrentPage0.005

DefaultInheritanceContentDecoratorTest

testMultiLevelPropertyInheritanceCollision0.005
testComponentInheritance0.002
testPropertyInheritanceWithInheritanceDisabled0.002
testDisabledPropertyInheritance0.002
testMultiLevelPropertyInheritance0.002
testDoesNothingOnTopLevelPage0.001
testResourcesInheritance0.004
testPropertyInheritance0.002

TemplatingModuleVersionHandlerTest

testInstallFrom4_4_62.446

NoScriptRendererTest

testRenderListOfComponents0.012
testRenderSingleComponent0.007

PlainTextRendererTest

testRenderInPreview0.009
testRender0.004

Failure Details

[Summary] [Package List] [Test Cases]


testUsesDefaultBundleIfNoMetadata
skipped: TODO: check expectation here
testUsesDefaultBundleIfNotRenderableDefinition
skipped: TODO: check expectation here
testOutputContainsPageEditorStyles
skipped: See SCRUM-1239. Will most likely be removed in 5.0
testOutputContainsPageEditorJavascript
skipped: See SCRUM-1239. Will most likely be removed in 5.0
testRenderWithContent
java.lang.Error: Unresolved compilation problems: The type org.hamcrest.core.CombinableMatcher$CombinableBothMatcher cannot be resolved. It is indirectly referenced from required .class files The type org.hamcrest.core.CombinableMatcher$CombinableEitherMatcher cannot be resolved. It is indirectly referenced from required .class files
testRenderWithContentAndDialog
java.lang.Error: Unresolved compilation problems: The type org.hamcrest.core.CombinableMatcher$CombinableBothMatcher cannot be resolved. It is indirectly referenced from required .class files The type org.hamcrest.core.CombinableMatcher$CombinableEitherMatcher cannot be resolved. It is indirectly referenced from required .class files
testRenderSimpleBar
java.lang.Error: Unresolved compilation problems: The type org.hamcrest.core.CombinableMatcher$CombinableBothMatcher cannot be resolved. It is indirectly referenced from required .class files The type org.hamcrest.core.CombinableMatcher$CombinableEitherMatcher cannot be resolved. It is indirectly referenced from required .class files