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 2021/11/29 18:40:28 UTC
[groovy] branch master updated: Fix the test for GROOVY-9802 running on Java8
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 e2444b8 Fix the test for GROOVY-9802 running on Java8
e2444b8 is described below
commit e2444b8cd27bbbfccb73ba5c55177d060fae9f9b
Author: Daniel Sun <su...@apache.org>
AuthorDate: Tue Nov 30 02:39:53 2021 +0800
Fix the test for GROOVY-9802 running on Java8
---
.../groovy-json/src/test/groovy/bugs/groovy9802/Groovy9802.groovy | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/subprojects/groovy-json/src/test/groovy/bugs/groovy9802/Groovy9802.groovy b/subprojects/groovy-json/src/test/groovy/bugs/groovy9802/Groovy9802.groovy
index 77867bc..8fe09ee 100644
--- a/subprojects/groovy-json/src/test/groovy/bugs/groovy9802/Groovy9802.groovy
+++ b/subprojects/groovy-json/src/test/groovy/bugs/groovy9802/Groovy9802.groovy
@@ -18,15 +18,16 @@
*/
package bugs.groovy9802
-import groovy.test.GroovyTestCase
+
import groovy.transform.CompileStatic
import org.junit.Test
+import static groovy.test.GroovyAssert.assertScript
import static groovy.test.GroovyAssert.isAtLeastJdk
import static org.junit.Assume.assumeTrue
@CompileStatic
-final class Groovy9802 extends GroovyTestCase {
+final class Groovy9802 {
@Test
void test() {
assumeTrue(isAtLeastJdk('11.0'))