You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/09/05 16:30:59 UTC

[groovy] branch master updated: Update AST checks in test

This is an automated email from the ASF dual-hosted git repository.

sunlan 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 72fbd8e52c Update AST checks in test
72fbd8e52c is described below

commit 72fbd8e52c9cc4dfa122033b64813a7a70f03a33
Author: Daniel Sun <su...@apache.org>
AuthorDate: Tue Sep 6 00:30:40 2022 +0800

    Update AST checks in test
---
 .../src/test/groovy/groovy/console/ui/AstNodeToScriptAdapterTest.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subprojects/groovy-console/src/test/groovy/groovy/console/ui/AstNodeToScriptAdapterTest.groovy b/subprojects/groovy-console/src/test/groovy/groovy/console/ui/AstNodeToScriptAdapterTest.groovy
index 136862307a..7da2ede8ba 100644
--- a/subprojects/groovy-console/src/test/groovy/groovy/console/ui/AstNodeToScriptAdapterTest.groovy
+++ b/subprojects/groovy-console/src/test/groovy/groovy/console/ui/AstNodeToScriptAdapterTest.groovy
@@ -604,7 +604,7 @@ final class AstNodeToScriptAdapterTest extends GroovyTestCase {
         assert result.contains("_result = org.codehaus.groovy.util.HashCodeHelper.updateHash(_result, this.getColor())")
 
         // assert clones
-        assert result.contains("((java.util.Date) org.codehaus.groovy.runtime.ReflectionMethodInvoker.invoke(when, 'clone', new java.lang.Object[][]))")
+        assert result.contains("((java.util.Date) org.apache.groovy.runtime.ObjectUtil.cloneObject(when))")
     }
 
     void testAnonymousInnerClass() {