Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.089
info.magnolia.module.groovy.terminal 1 0 0 0 100% 0.125
info.magnolia.module.groovy.support.classes 21 0 0 1 95.238% 1.337
info.magnolia.module.groovy.setup 9 0 0 1 88.889% 11.611
info.magnolia.module.groovy.validator 5 0 0 0 100% 0.099
info.magnolia.module.groovy.support.nodes 14 0 0 0 100% 0.079
info.magnolia.module.groovy.xml 8 0 0 0 100% 0.042
info.magnolia.module.groovy.rescue 1 0 0 1 0% 0

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

info.magnolia.module.groovy.terminal

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

info.magnolia.module.groovy.support.classes

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

info.magnolia.module.groovy.setup

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

info.magnolia.module.groovy.validator

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

info.magnolia.module.groovy.support.nodes

Class Tests Errors Failures Skipped Success Rate Time
MgnlGroovyJCRNodeTest 8 0 0 0 100% 0.041
MgnlGroovyNodeTest 6 0 0 0 100% 0.038

info.magnolia.module.groovy.xml

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

info.magnolia.module.groovy.rescue

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

Test Cases

[Summary] [Package List] [Test Cases]

MgnlGroovyRescueAppTest

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

GroovyModuleVersionHandlerTest

testUpdateTo22ReordersGroovyInDevGroup 4.513
testUpgradeFrom10 1.585
testUpgradeFrom23 0.837
testUpdateTo221AddsDuplicateAction 0.805
testUpgradeTo22SetsAppPermissions 1.133
testUpdateTo22WithNoExistingLegacyApp 1.075
testUpdateTo22WithExistingLegacyApp 0.954
testUpgradeFrom222 0.709

InstallGroovyFileTest

testInstallGroovyFiles 0
skipped

GroovyClassFactoryTest

testRepoHasPriorityOverClasspathIfScriptInRepoIsEnabled 0.71
testThrowsRegularCNFEWhenClassExistsForNeitherCFs 0.027
testRecompilesOnNewInstanceIfScriptInRepoWasModified 0.038
testCanLoadClassFromRepo 0.016
testFallsBackToClassPathIfScriptInRepoIsDisabledEvenIfScriptInRepoIsNewer 0.034
testRecompilesIfScriptInRepoWasModified 0.05
testLoadedGroovyClassesCanUseClassesFoundThroughTheDefaultClassLoader 0.166
testFallsBackToClassPathIfScriptInRepoIsDisabled 0.019
testCanLoadFromClassPath 0.019
testDelegatesToDefaultClassFactoryToLoadJavaClasses 0.001
testThrowsCNFEWithCompilationErrorWhenGroovyClassCanNotBeCompiled 0.014

GroovyModuleTest

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

MgnlGroovyClassLoaderTest

testDoNotThrowCFEWhenCompileChecksAreOffAndPackageDeclarationIsWrong 0.008
testThrowCFEWhenCompileChecksAreOnAndClassDeclarationIsNotFound 0.012
testDoNotThrowCFEWhenCompileChecksAreOnAndClassDeclarationIsFound 0.012
testDoNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsEmptyAndMgnlPathIsRoot 0.007
testDoNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsCorrect 0.007
testThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsMissing 0.003
testMgnlGroovyClassLoaderCallMethod 0.023
testResolveScriptNameFromSource 0.169
testThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsWrong 0.002

MgnlGroovyJCRNodeTest

testIteratorWithContentNode 0.024
testGetChildren 0.016
testShowProperty 0
testLookUpName 0
testGetChildrenOrNodesWithContentNode 0
testShowNode 0
testIterator 0.001
testLookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0

MgnlGroovyNodeTest

testIteratorWithContentNode 0.034
testGetChildren 0
testGetChildrenWithContentNode 0
testLookUpName 0.004
testIterator 0
testLookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0

ExecuteGroovyFileTaskTest

testInputFileHappyFlow 0.044
testInputFileNotExisting 0.001
testInputFileEmpty 0.012
testInputFileNull 0
testInputFileGeneratingGroovyException 0.032

GroovyTerminalTest

testOnlyAuthorizedUsersCanExecuteGroovyCode 0.125

GroovyValidatorTest

validateGroovyClassWithWrongPackage 0.062
validateGroovyClassWithInexistentPackage 0.006
validateGroovyClassWithPackage 0.008
validateGroovyClassNoPackage 0.008
validateGroovyScript 0.015

GroovyBuilderTest

createNodeWithAllAvailableArguments 0.026
getCurrentNode 0.001
createPropertiesOfDifferentTypes 0.012
createNodeOverridesNodeType 0.003
createNodeCreatesSubnodes 0
createNodeWithBlankArg 0
createNode 0
createNodeIgnoresFurtherValueArgument 0

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 ?