Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
73 1 0 1 97.26% 21.198

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.04
info.magnolia.module.groovy.terminal 1 0 0 0 100% 0
info.magnolia.module.groovy.console 3 0 0 0 100% 0.673
info.magnolia.module.groovy.support.classes 25 0 0 1 96% 0.245
info.magnolia.module.groovy.setup 16 1 0 0 93.75% 19.132
info.magnolia.module.groovy.validator 6 0 0 0 100% 0.937
info.magnolia.module.groovy.xml 8 0 0 0 100% 0
info.magnolia.module.groovy.support.nodes 8 0 0 0 100% 0
info.magnolia.module.groovy.rescue 1 0 0 0 100% 0.171

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

info.magnolia.module.groovy.terminal

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

info.magnolia.module.groovy.console

Class Tests Errors Failures Skipped Success Rate Time
MgnlGroovyConsoleTest 3 0 0 0 100% 0.673

info.magnolia.module.groovy.support.classes

Class Tests Errors Failures Skipped Success Rate Time
MgnlGroovyClassLoaderTest 11 0 0 0 100% 0.062
GroovyClassFactoryTest 13 0 0 0 100% 0.183
GroovyModuleTest 1 0 0 1 0% 0

info.magnolia.module.groovy.setup

Class Tests Errors Failures Skipped Success Rate Time
InstallGroovyFileTest 1 0 0 0 100% 0.151
GroovyModuleVersionHandlerTest 15 1 0 0 93.333% 18.981

info.magnolia.module.groovy.validator

Class Tests Errors Failures Skipped Success Rate Time
GroovyValidatorTest 6 0 0 0 100% 0.937

info.magnolia.module.groovy.xml

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

info.magnolia.module.groovy.support.nodes

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

info.magnolia.module.groovy.rescue

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

Test Cases

[Summary] [Package List] [Test Cases]

GroovyBuilderTest

createNodeWithAllAvailableArguments 0
getCurrentNode 0
createPropertiesOfDifferentTypes 0
createNodeOverridesNodeType 0
createNodeCreatesSubnodes 0
createNodeWithBlankArg 0
createNode 0
createNodeIgnoresFurtherValueArgument 0

InstallGroovyFileTest

testInstallGroovyFiles 0.151

GroovyValidatorTest

validateGroovyClassWithWrongPackage 0.822
validateGroovyClassWithInexistentPackage 0.002
validateGroovyClassWithPackage 0.087
validateGroovyClassDeclaringPackageButUnderRoot 0.003
validateGroovyClassNoPackage 0.005
validateGroovyScript 0.018

MgnlGroovyConsoleTest

longRunningScriptStartsPolling 0.234
fastScriptReturnsWithoutStartingPolling 0.218
scriptWithNoReturnStatementDoesNotPrintOutNull 0.221

MgnlGroovyClassLoaderTest

throwCFEWhenScriptAndClassDeclarationsAreMixed 0
throwCFEWhenCompileChecksAreOnAndPackageDeclarationIsMissing 0.002
doNotThrowCFEWhenScriptAndClassDeclarationsAreMixedAndIsAScript 0.007
doNotThrowCFEWhenCompileChecksAreOffAndPackageDeclarationIsWrong 0.006
doNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsCorrect 0.003
mgnlGroovyClassLoaderCallMethod 0.022
resolveScriptNameFromSource 0.004
throwCFEWhenCompileChecksAreOnAndPackageDeclarationIsWrong 0.002
doNotThrowCFEWhenCompileChecksAreOnAndPackageDeclarationIsEmptyAndMgnlPathIsRoot 0.004
throwCFEWhenCompileChecksAreOnAndClassDeclarationIsNotFound 0.001
doNotThrowCFEWhenCompileChecksAreOnAndClassDeclarationIsFound 0.011

GroovyClassFactoryTest

recompileIfScriptInRepoWasModified 0
fallBackToClassPathIfScriptInRepoIsDisabled 0
delegateToDefaultClassFactoryToLoadJavaClasses 0.002
canLoadFromClassPath 0.014
reloadDoesNotRecompilesClassIfSourceUnchanged 0.009
throwCNFEWithCompilationErrorWhenGroovyClassCanNotBeCompiled 0.011
throwRegularCNFEWhenClassExistsForNeitherCFs 0.002
repoHasPriorityOverClasspathIfScriptInRepoIsEnabled 0.009
loadedGroovyClassesCanUseClassesFoundThroughTheDefaultClassLoader 0.055
fallBackToClassPathIfScriptInRepoIsDisabledEvenIfScriptInRepoIsNewer 0.016
canLoadClassFromRepo 0.015
recompileOnNewInstanceIfScriptInRepoWasModified 0.03
reloadRecompilesClassIfSourceChanged 0.02

ExecuteGroovyFileTaskTest

inputFileHappyFlow 0.024
inputFileNull 0.001
inputFileNotExisting 0.001
inputFileGeneratingGroovyException 0.011
inputFileEmpty 0.003

MgnlGroovyJCRNodeTest

showProperty 0
iteratorWithContentNode 0
lookUpPropertyWithAndWithoutAtNotationReturnsSameValue 0
getChildren 0
showNode 0
lookUpName 0
getChildrenOrNodesWithContentNode 0
iterator 0

MgnlGroovyRescueAppTest

initMethodSetRescueSecuritySupport 0.171

GroovyModuleTest

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

GroovyModuleVersionHandlerTest

updateFrom261 2.536
updateFrom21ReordersGroovyInDevGroup 2.063
updateFrom201WithExistingLegacyApp 1.554
upgradeFrom222 1.013
updateFrom201WithNoExistingLegacyApp 1.278
cleanInstallBootstrapsSamples 2.402
Failed to create Script instance for class: class samples.commands.GroovyMailCommand. Reason: java.util.ConcurrentModificationException
updateFrom252RemovesWorkspaceFromCreateAppScriptEditorSection 0.905
updateFrom253ReplacesOldGroovyMailCommandSampleAndKeepsNonEmptyFolders 0.709
updateFrom22AddsDuplicateAction 1.047
upgradeFrom10 1.298
upgradeFrom23 0.931
updateFrom253ReplacesOldGroovyMailCommandSampleAndRemovesEmptyFolders 0.701
updateFrom260FixesCreateAppScript 0.52
updateFrom232ReplaceBasicTextCodeFieldDefinition 0.669
upgradeFrom21SetsAppPermissions 1.355

GroovyTerminalTest

onlyAuthorizedUsersCanExecuteGroovyCode 0

Failure Details

[Summary] [Package List] [Test Cases]


testGroovyClassFactoryIsSetupAndModuleLifecycleCanBeAGroovyScript
skipped: fails with java.lang.AssertionError: Groovy Module class wasn't loaded ?
cleanInstallBootstrapsSamples
groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class samples.commands.GroovyMailCommand. Reason: java.util.ConcurrentModificationException