This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new e544a79 display method information a little more nicely (adjust test)
e544a79 is described below
commit e544a79151685f44e8f77802c97f0fe794d47384
Author: Paul King <[email protected]>
AuthorDate: Sun May 2 12:48:51 2021 +1000
display method information a little more nicely (adjust test)
---
.../groovy/groovy/console/ui/ScriptToTreeNodeAdapterTest.groovy | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git
a/subprojects/groovy-console/src/test/groovy/groovy/console/ui/ScriptToTreeNodeAdapterTest.groovy
b/subprojects/groovy-console/src/test/groovy/groovy/console/ui/ScriptToTreeNodeAdapterTest.groovy
index 7110106..6b065af 100644
---
a/subprojects/groovy-console/src/test/groovy/groovy/console/ui/ScriptToTreeNodeAdapterTest.groovy
+++
b/subprojects/groovy-console/src/test/groovy/groovy/console/ui/ScriptToTreeNodeAdapterTest.groovy
@@ -245,6 +245,7 @@ final class ScriptToTreeNodeAdapterTest extends
GroovyTestCase {
startsWith('ClassNode'),
eq('Methods'),
startsWith('MethodNode - run'),
+ eq('Body'),
startsWith('BlockStatement'),
startsWith('ExpressionStatement'),
startsWith('Constant - foo'),
@@ -284,6 +285,7 @@ final class ScriptToTreeNodeAdapterTest extends
GroovyTestCase {
startsWith('ClassNode'),
eq('Methods'),
eq('MethodNode - main'),
+ eq('Body'),
startsWith('ExpressionStatement'), //notice, there is
only one ExpressionStatement
startsWith('StaticMethodCallExpression'),
]
@@ -316,7 +318,8 @@ final class ScriptToTreeNodeAdapterTest extends
GroovyTestCase {
[
startsWith('InnerClassNode - Outer\$Inner'),
eq('Methods'),
- startsWith('MethodNode - someMethod'),
+ eq('MethodNode - someMethod'),
+ eq('Body'),
startsWith('BlockStatement'),
]
)
@@ -448,7 +451,7 @@ final class ScriptToTreeNodeAdapterTest extends
GroovyTestCase {
}
}
- void testScriptWithAdapterThatLoadsNitherFreeFormNorClass() {
+ void testScriptWithAdapterThatLoadsNeitherFreeFormNorClass() {
ScriptToTreeNodeAdapter adapter = createAdapter(false, false, false)
// since free standing script is not being loaded, it should fail