Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
64 0 0 3 95.312% 16.512

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.module.groovy.task 5 0 0 0 100% 0.06
info.magnolia.module.groovy.support.nodes 14 0 0 0 100% 0.059
info.magnolia.module.groovy.rescue 1 0 0 1 0% 0
info.magnolia.module.groovy.setup 9 0 0 1 88.889% 15.117
info.magnolia.module.groovy.terminal 1 0 0 0 100% 0.091
info.magnolia.module.groovy.support.classes 21 0 0 1 95.238% 1.037
info.magnolia.module.groovy.xml 8 0 0 0 100% 0.048
info.magnolia.module.groovy.validator 5 0 0 0 100% 0.1

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

info.magnolia.module.groovy.task

Class Tests Errors Failures Skipped Success Rate Time
ExecuteGroovyFileTaskTest 5 0 0 0 100% 0.06

info.magnolia.module.groovy.support.nodes

Class Tests Errors Failures Skipped Success Rate Time
MgnlGroovyJCRNodeTest 8 0 0 0 100% 0.029
MgnlGroovyNodeTest 6 0 0 0 100% 0.03

info.magnolia.module.groovy.rescue

Class Tests Errors Failures Skipped Success Rate Time
MgnlGroovyRescueAppTest 1 0 0 1 0% 0

info.magnolia.module.groovy.setup

Class Tests Errors Failures Skipped Success Rate Time
GroovyModuleVersionHandlerTest 8 0 0 0 100% 15.117
InstallGroovyFileTest 1 0 0 1 0% 0

info.magnolia.module.groovy.terminal

Class Tests Errors Failures Skipped Success Rate Time
GroovyTerminalTest 1 0 0 0 100% 0.091

info.magnolia.module.groovy.support.classes

Class Tests Errors Failures Skipped Success Rate Time
GroovyClassFactoryTest 11 0 0 0 100% 0.824
GroovyModuleTest 1 0 0 1 0% 0
MgnlGroovyClassLoaderTest 9 0 0 0 100% 0.213

info.magnolia.module.groovy.xml

Class Tests Errors Failures Skipped Success Rate Time
GroovyBuilderTest 8 0 0 0 100% 0.048

info.magnolia.module.groovy.validator

Class Tests Errors Failures Skipped Success Rate Time
GroovyValidatorTest 5 0 0 0 100% 0.1

Test Cases

[Summary] [Package List] [Test Cases]

MgnlGroovyRescueAppTest

testInitMethodSetRescueSecuritySupport 0
info.magnolia.objectfactory.MgnlInstantiationException: java.lang.NoSuchMethodException: info.magnolia.context.SystemRepositoryStrategy.<init>()

GroovyModuleVersionHandlerTest

testUpdateTo22ReordersGroovyInDevGroup 7.302
testUpgradeFrom10 2.443
testUpgradeFrom23 0.822
testUpdateTo221AddsDuplicateAction 0.765
testUpgradeTo22SetsAppPermissions 1.117
testUpdateTo22WithNoExistingLegacyApp 1.048
testUpdateTo22WithExistingLegacyApp 0.966
testUpgradeFrom222 0.654

InstallGroovyFileTest

testInstallGroovyFiles 0
skipped

GroovyClassFactoryTest

testRepoHasPriorityOverClasspathIfScriptInRepoIsEnabled 0.496
testThrowsRegularCNFEWhenClassExistsForNeitherCFs 0.021
testRecompilesOnNewInstanceIfScriptInRepoWasModified 0.027
testCanLoadClassFromRepo 0.012
testFallsBackToClassPathIfScriptInRepoIsDisabledEvenIfScriptInRepoIsNewer 0.038
testRecompilesIfScriptInRepoWasModified 0.038
testLoadedGroovyClassesCanUseClassesFoundThroughTheDefaultClassLoader 0.137
testFallsBackToClassPathIfScriptInRepoIsDisabled 0.02
testCanLoadFromClassPath 0.02
testDelegatesToDefaultClassFactoryToLoadJavaClasses 0.001
testThrowsCNFEWithCompilationErrorWhenGroovyClassCanNotBeCompiled 0.014

GroovyModuleTest

testGroovyClassFactoryIsSetupAndModuleLifecycleCanBeAGroovyScript 0
fails with java.lang.AssertionError: Groovy Module class wasn't loaded ?

MgnlGroovyClassLoaderTest

testDoNotThrowCFEWhenCompileChecksAreOffAndPackageDeclarationIsWrong 0.003
testThrowCFEWhenCompileChecksAreOnAndClassDeclarationIsNotFound 0.006
testDoNotThrowCFEWhenCompileChecksAreOnAndClassDeclarationIsFound 0.012
testDoNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsEmptyAndMgnlPathIsRoot 0.005
testDoNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsCorrect 0.006
testThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsMissing 0.001
testMgnlGroovyClassLoaderCallMethod 0.017
testResolveScriptNameFromSource 0.161
testThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsWrong 0.002

MgnlGroovyJCRNodeTest

testIteratorWithContentNode 0.018
testGetChildren 0.01
testShowProperty 0
testLookUpName 0
testGetChildrenOrNodesWithContentNode 0
testShowNode 0
testIterator 0.001
testLookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0

MgnlGroovyNodeTest

testIteratorWithContentNode 0.026
testGetChildren 0
testGetChildrenWithContentNode 0
testLookUpName 0.003
testIterator 0
testLookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0.001

ExecuteGroovyFileTaskTest

testInputFileHappyFlow 0.043
testInputFileNotExisting 0
testInputFileEmpty 0.009
testInputFileNull 0
testInputFileGeneratingGroovyException 0.008

GroovyTerminalTest

testOnlyAuthorizedUsersCanExecuteGroovyCode 0.091

GroovyValidatorTest

validateGroovyClassWithWrongPackage 0.068
validateGroovyClassWithInexistentPackage 0.007
validateGroovyClassWithPackage 0.007
validateGroovyClassNoPackage 0.006
validateGroovyScript 0.012

GroovyBuilderTest

createNodeWithAllAvailableArguments 0.03
getCurrentNode 0
createPropertiesOfDifferentTypes 0.014
createNodeOverridesNodeType 0.002
createNodeCreatesSubnodes 0.001
createNodeWithBlankArg 0
createNode 0
createNodeIgnoresFurtherValueArgument 0.001

Failure Details

[Summary] [Package List] [Test Cases]


testInitMethodSetRescueSecuritySupport
skipped: info.magnolia.objectfactory.MgnlInstantiationException: java.lang.NoSuchMethodException: info.magnolia.context.SystemRepositoryStrategy.<init>()
testInstallGroovyFiles
skipped: skipped
testGroovyClassFactoryIsSetupAndModuleLifecycleCanBeAGroovyScript
skipped: fails with java.lang.AssertionError: Groovy Module class wasn't loaded ?