groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: GROOVY-8559: CLONE - Add @Repeatable java8 annotation support (jdk7 compatibility)
Date Thu, 26 Apr 2018 01:56:41 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X 3e21f8b60 -> 965a553cd


GROOVY-8559: CLONE - Add @Repeatable java8 annotation support (jdk7 compatibility)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/965a553c
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/965a553c
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/965a553c

Branch: refs/heads/GROOVY_2_5_X
Commit: 965a553cd6876f88441db8a77afae56c4907bd86
Parents: 3e21f8b
Author: Paul King <paulk@asert.com.au>
Authored: Thu Apr 26 11:56:14 2018 +1000
Committer: Paul King <paulk@asert.com.au>
Committed: Thu Apr 26 11:56:14 2018 +1000

----------------------------------------------------------------------
 .../test/groovy/gls/annotations/vm8/AnnotationTest.groovy    | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/965a553c/subprojects/tests-vm8/src/test/groovy/gls/annotations/vm8/AnnotationTest.groovy
----------------------------------------------------------------------
diff --git a/subprojects/tests-vm8/src/test/groovy/gls/annotations/vm8/AnnotationTest.groovy
b/subprojects/tests-vm8/src/test/groovy/gls/annotations/vm8/AnnotationTest.groovy
index 8d99d61..436b4a0 100644
--- a/subprojects/tests-vm8/src/test/groovy/gls/annotations/vm8/AnnotationTest.groovy
+++ b/subprojects/tests-vm8/src/test/groovy/gls/annotations/vm8/AnnotationTest.groovy
@@ -18,12 +18,10 @@
  */
 package gls.annotations.vm8
 
-import gls.CompilableTestSupport
-
 /**
  * Tests various properties of annotation definitions.
  */
-class AnnotationTest extends CompilableTestSupport {
+class AnnotationTest extends GroovyTestCase {
 
     void testAnnotationWithRepeatableSupportedPrecompiledJava() {
         assertScript '''
@@ -33,8 +31,8 @@ class AnnotationTest extends CompilableTestSupport {
             class MyClass {
                 // TODO confirm the JDK9 behavior is what we expect
                 private static final List<String> expected = [
-                    '@Requires(value=[@Require(value=val1), @Require(value=val2)])',    //
JDK5-8
-                    '@Requires(value={@Require(value="val1"), @Require(value="val2")})' //
JDK9
+                    '@vm8.Requires(value=[@vm8.Require(value=val1), @vm8.Require(value=val2)])',
   // JDK5-8
+                    '@vm8.Requires(value={@vm8.Require(value="val1"), @vm8.Require(value="val2")})'
// JDK9
                 ]
 
                 // control


Mime
View raw message