{"action":"created","issue":{"url":"https://api.github.com/repos/junit-team/junit5/issues/1462","repository_url":"https://api.github.com/repos/junit-team/junit5","labels_url":"https://api.github.com/repos/junit-team/junit5/issues/1462/labels{/name}","comments_url":"https://api.github.com/repos/junit-team/junit5/issues/1462/comments","events_url":"https://api.github.com/repos/junit-team/junit5/issues/1462/events","html_url":"https://github.com/junit-team/junit5/issues/1462","id":330815501,"node_id":"MDU6SXNzdWUzMzA4MTU1MDE=","number":1462,"title":"@ParameterizedTest annotation does not appear to be valid in Groovy file","user":{"login":"dlanaghen","id":627949,"node_id":"MDQ6VXNlcjYyNzk0OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/627949?v=4","gravatar_id":"","url":"https://api.github.com/users/dlanaghen","html_url":"https://github.com/dlanaghen","followers_url":"https://api.github.com/users/dlanaghen/followers","following_url":"https://api.github.com/users/dlanaghen/following{/other_user}","gists_url":"https://api.github.com/users/dlanaghen/gists{/gist_id}","starred_url":"https://api.github.com/users/dlanaghen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlanaghen/subscriptions","organizations_url":"https://api.github.com/users/dlanaghen/orgs","repos_url":"https://api.github.com/users/dlanaghen/repos","events_url":"https://api.github.com/users/dlanaghen/events{/privacy}","received_events_url":"https://api.github.com/users/dlanaghen/received_events","type":"User","site_admin":false},"labels":[{"id":413313650,"node_id":"MDU6TGFiZWw0MTMzMTM2NTA=","url":"https://api.github.com/repos/junit-team/junit5/labels/status:%20works-as-designed","name":"status: works-as-designed","color":"dfdfdf","default":false},{"id":165165183,"node_id":"MDU6TGFiZWwxNjUxNjUxODM=","url":"https://api.github.com/repos/junit-team/junit5/labels/type:%20question","name":"type: question","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-08T22:00:19Z","updated_at":"2018-06-10T13:50:46Z","closed_at":"2018-06-09T11:07:44Z","author_association":"NONE","body":"I get a compile error using the `@ParamterizedTest` annotation in a Groovy file.  `@Test` works fine.\r\n\r\nUsing JUnit 5 parallel-exectution branch, but just testing a simple JUnit 5 test in a groovy file.\r\n\r\nFile:  ParamerizedTests.groovy\r\n\r\n```groovy\r\nimport org.junit.jupiter.api.Test\r\nimport org.junit.jupiter.params.ParameterizedTest\r\nimport org.junit.jupiter.params.provider.ValueSource\r\n\r\nclass ParameterizedTests {\r\n    @ParameterizedTest\r\n    @ValueSource(strings = {\"Dave\", \"Bill\"})\r\n    public void T(String s) {\r\n        println( \"Hello ${s}\")\r\n    }\r\n}\r\n```\r\n\r\nI get a compile error.\r\n\r\n```\r\n[ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.6:generateTestStubs (default) on project fitpay-automation: Error occurred while calling a method on a Groovy class from classpath.: InvocationTargetException: startup failed:\r\n[ERROR] /Users/davidlanaghen/work/automation3/automation/src/test/groovy/fitpay/automation/api/tests/users/ParameterizedTests.groovy: 8: unexpected token: @ @ line 8, column 5.\r\n[ERROR]        @ParameterizedTest\r\n[ERROR]        ^\r\n[ERROR] \r\n[ERROR] 1 error\r\n```\r\n\r\nThis is a springboot application and the following dependency has been added to allow for Groovy compilation:\r\n\r\n```xml\r\n       <dependency>\r\n            <groupId>org.codehaus.groovy</groupId>\r\n            <artifactId>groovy</artifactId>\r\n        </dependency>\r\n```"},"comment":{"url":"https://api.github.com/repos/junit-team/junit5/issues/comments/396050572","html_url":"https://github.com/junit-team/junit5/issues/1462#issuecomment-396050572","issue_url":"https://api.github.com/repos/junit-team/junit5/issues/1462","id":396050572,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjA1MDU3Mg==","user":{"login":"sbrannen","id":104798,"node_id":"MDQ6VXNlcjEwNDc5OA==","avatar_url":"https://avatars0.githubusercontent.com/u/104798?v=4","gravatar_id":"","url":"https://api.github.com/users/sbrannen","html_url":"https://github.com/sbrannen","followers_url":"https://api.github.com/users/sbrannen/followers","following_url":"https://api.github.com/users/sbrannen/following{/other_user}","gists_url":"https://api.github.com/users/sbrannen/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrannen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrannen/subscriptions","organizations_url":"https://api.github.com/users/sbrannen/orgs","repos_url":"https://api.github.com/users/sbrannen/repos","events_url":"https://api.github.com/users/sbrannen/events{/privacy}","received_events_url":"https://api.github.com/users/sbrannen/received_events","type":"User","site_admin":false},"created_at":"2018-06-10T13:50:46Z","updated_at":"2018-06-10T13:50:46Z","author_association":"MEMBER","body":"> Compilation fails because you have to use `[` and `]` instead of `{` and `}` in Groovy:\r\n\r\nGood catch!"}}
{"actor":{"display_login":"sbrannen"}}