Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.092
info.magnolia.module.groovy.terminal 1 0 0 0 100% 0.082
info.magnolia.module.groovy.support.classes 21 0 0 1 95.238% 1.122
info.magnolia.module.groovy.setup 9 0 0 1 88.889% 10.815
info.magnolia.module.groovy.validator 5 0 0 0 100% 0.103
info.magnolia.module.groovy.support.nodes 14 0 0 0 100% 0.078
info.magnolia.module.groovy.xml 8 0 0 0 100% 0.039
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.092

info.magnolia.module.groovy.terminal

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

info.magnolia.module.groovy.support.classes

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

info.magnolia.module.groovy.setup

Class Tests Errors Failures Skipped Success Rate Time
GroovyModuleVersionHandlerTest 8 0 0 0 100% 10.815
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.103

info.magnolia.module.groovy.support.nodes

Class Tests Errors Failures Skipped Success Rate Time
MgnlGroovyJCRNodeTest 8 0 0 0 100% 0.034
MgnlGroovyNodeTest 6 0 0 0 100% 0.044

info.magnolia.module.groovy.xml

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

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.099
testUpgradeFrom10 1.514
testUpgradeFrom23 0.804
testUpdateTo221AddsDuplicateAction 0.86
testUpgradeTo22SetsAppPermissions 1.046
testUpdateTo22WithNoExistingLegacyApp 1.011
testUpdateTo22WithExistingLegacyApp 0.902
testUpgradeFrom222 0.579

InstallGroovyFileTest

testInstallGroovyFiles 0
skipped

GroovyClassFactoryTest

testRepoHasPriorityOverClasspathIfScriptInRepoIsEnabled 0.526
testThrowsRegularCNFEWhenClassExistsForNeitherCFs 0.019
testRecompilesOnNewInstanceIfScriptInRepoWasModified 0.041
testCanLoadClassFromRepo 0.015
testFallsBackToClassPathIfScriptInRepoIsDisabledEvenIfScriptInRepoIsNewer 0.045
testRecompilesIfScriptInRepoWasModified 0.049
testLoadedGroovyClassesCanUseClassesFoundThroughTheDefaultClassLoader 0.137
testFallsBackToClassPathIfScriptInRepoIsDisabled 0.021
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.009
testThrowCFEWhenCompileChecksAreOnAndClassDeclarationIsNotFound 0.008
testDoNotThrowCFEWhenCompileChecksAreOnAndClassDeclarationIsFound 0.013
testDoNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsEmptyAndMgnlPathIsRoot 0.008
testDoNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsCorrect 0.006
testThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsMissing 0.002
testMgnlGroovyClassLoaderCallMethod 0.022
testResolveScriptNameFromSource 0.165
testThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsWrong 0.003

MgnlGroovyJCRNodeTest

testIteratorWithContentNode 0.016
testGetChildren 0.012
testShowProperty 0
testLookUpName 0
testGetChildrenOrNodesWithContentNode 0
testShowNode 0.005
testIterator 0
testLookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0.001

MgnlGroovyNodeTest

testIteratorWithContentNode 0.032
testGetChildren 0.002
testGetChildrenWithContentNode 0.001
testLookUpName 0.007
testIterator 0.001
testLookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0.001

ExecuteGroovyFileTaskTest

testInputFileHappyFlow 0.065
testInputFileNotExisting 0.001
testInputFileEmpty 0.017
testInputFileNull 0
testInputFileGeneratingGroovyException 0.009

GroovyTerminalTest

testOnlyAuthorizedUsersCanExecuteGroovyCode 0.082

GroovyValidatorTest

validateGroovyClassWithWrongPackage 0.06
validateGroovyClassWithInexistentPackage 0.005
validateGroovyClassWithPackage 0.01
validateGroovyClassNoPackage 0.01
validateGroovyScript 0.018

GroovyBuilderTest

createNodeWithAllAvailableArguments 0.024
getCurrentNode 0
createPropertiesOfDifferentTypes 0.01
createNodeOverridesNodeType 0.002
createNodeCreatesSubnodes 0
createNodeWithBlankArg 0.001
createNode 0
createNodeIgnoresFurtherValueArgument 0.002

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 ?