groovy git commit: Refine the test for GROOVY-8228 further

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

groovy git commit: Refine the test for GROOVY-8228 further

sunlan
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 09c84a54b -> d10beb9e9


Refine the test for GROOVY-8228 further

(cherry picked from commit abd63ab)


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

Branch: refs/heads/GROOVY_2_6_X
Commit: d10beb9e96514035b080c6a2e6fab583a32f8a73
Parents: 09c84a5
Author: sunlan <[hidden email]>
Authored: Wed Aug 9 11:04:17 2017 +0800
Committer: sunlan <[hidden email]>
Committed: Wed Aug 9 11:04:40 2017 +0800

----------------------------------------------------------------------
 .../parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/d10beb9e/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy b/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy
index 39dd35c..19045ae 100644
--- a/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy
+++ b/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy
@@ -83,7 +83,7 @@ Method test2Method = JSR308Class.class.getDeclaredMethods().find(e -> e.name ==
 assert JSR308Class.class == test2Method.getAnnotatedReceiverType().type
 
 Parameter listParameter = testMethod.getParameters()[0]
-assert 'java.util.List<?>' == listParameter.getAnnotatedType().type.typeName
+assert ['java.util.List<?>', 'java.util.List'].contains(listParameter.getAnnotatedType().type.typeName)
 
 Field nameField = JSR308Class.class.getDeclaredField('name');
 assert String.class == nameField.getAnnotatedType().type

Loading...