You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2020/04/20 12:39:39 UTC

[groovy] 01/02: GROOVY-8774: refine test

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

commit 18b759503ff8168a87c1f6119fcefede934ccc3f
Author: Paul King <pa...@asert.com.au>
AuthorDate: Mon Apr 20 21:29:30 2020 +1000

    GROOVY-8774: refine test
---
 .../org/codehaus/groovy/tools/stubgenerator/Groovy8774Bug.groovy    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/test/org/codehaus/groovy/tools/stubgenerator/Groovy8774Bug.groovy b/src/test/org/codehaus/groovy/tools/stubgenerator/Groovy8774Bug.groovy
index dcf5957..46dd03e 100644
--- a/src/test/org/codehaus/groovy/tools/stubgenerator/Groovy8774Bug.groovy
+++ b/src/test/org/codehaus/groovy/tools/stubgenerator/Groovy8774Bug.groovy
@@ -26,7 +26,7 @@ class Groovy8774Bug extends StringSourcesStubTestCase {
                     public interface Dummy { }
                 ''',
                 'test/package-info.groovy': '''
-                    @groovy.transform.Generated
+                    @java.lang.Deprecated
                     package test
                 '''
         ]
@@ -38,7 +38,9 @@ class Groovy8774Bug extends StringSourcesStubTestCase {
 //    }
 
     void verifyStubs() {
-        assert stubJavaSourceFor('test/package-info').contains('@groovy.transform.Generated')
+        assert stubJavaSourceFor('test/package-info').contains('@java.lang.Deprecated')
         assert stubJavaSourceFor('test/package-info').contains('package test;')
+        def piClass = loader.loadClass('test.package-info')
+        assert piClass.isInterface()
     }
 }