Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.053
info.magnolia.module.groovy.support.nodes 14 0 0 0 100% 0.053
info.magnolia.module.groovy.rescue 1 0 0 1 0% 0
info.magnolia.module.groovy.setup 9 0 0 1 88.889% 16.002
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.169
info.magnolia.module.groovy.xml 8 0 0 0 100% 0.042
info.magnolia.module.groovy.validator 5 0 0 0 100% 0.105

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

info.magnolia.module.groovy.support.nodes

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

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% 16.002
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.962
GroovyModuleTest 1 0 0 1 0% 0
MgnlGroovyClassLoaderTest 9 0 0 0 100% 0.207

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

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

Test Cases

[Summary] [Package List] [Test Cases]

MgnlGroovyRescueAppTest

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

GroovyModuleVersionHandlerTest

testUpdateTo22ReordersGroovyInDevGroup 8.005
testUpgradeFrom10 2.574
testUpgradeFrom23 0.865
testUpdateTo221AddsDuplicateAction 0.958
testUpgradeTo22SetsAppPermissions 1.045
testUpdateTo22WithNoExistingLegacyApp 1.02
testUpdateTo22WithExistingLegacyApp 0.894
testUpgradeFrom222 0.641

InstallGroovyFileTest

testInstallGroovyFiles 0
skipped

GroovyClassFactoryTest

testRepoHasPriorityOverClasspathIfScriptInRepoIsEnabled 0.642
testThrowsRegularCNFEWhenClassExistsForNeitherCFs 0.022
testRecompilesOnNewInstanceIfScriptInRepoWasModified 0.03
testCanLoadClassFromRepo 0.015
testFallsBackToClassPathIfScriptInRepoIsDisabledEvenIfScriptInRepoIsNewer 0.028
testRecompilesIfScriptInRepoWasModified 0.041
testLoadedGroovyClassesCanUseClassesFoundThroughTheDefaultClassLoader 0.132
testFallsBackToClassPathIfScriptInRepoIsDisabled 0.019
testCanLoadFromClassPath 0.019
testDelegatesToDefaultClassFactoryToLoadJavaClasses 0.001
testThrowsCNFEWithCompilationErrorWhenGroovyClassCanNotBeCompiled 0.013

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.006
testDoNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsCorrect 0.005
testThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsMissing 0.001
testMgnlGroovyClassLoaderCallMethod 0.018
testResolveScriptNameFromSource 0.154
testThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsWrong 0.002

MgnlGroovyJCRNodeTest

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

MgnlGroovyNodeTest

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

ExecuteGroovyFileTaskTest

testInputFileHappyFlow 0.034
testInputFileNotExisting 0.001
testInputFileEmpty 0.009
testInputFileNull 0
testInputFileGeneratingGroovyException 0.009

GroovyTerminalTest

testOnlyAuthorizedUsersCanExecuteGroovyCode 0.091

GroovyValidatorTest

validateGroovyClassWithWrongPackage 0.073
validateGroovyClassWithInexistentPackage 0.005
validateGroovyClassWithPackage 0.008
validateGroovyClassNoPackage 0.006
validateGroovyScript 0.013

GroovyBuilderTest

createNodeWithAllAvailableArguments 0.027
getCurrentNode 0.001
createPropertiesOfDifferentTypes 0.011
createNodeOverridesNodeType 0.002
createNodeCreatesSubnodes 0.001
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 ?