You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2019/06/07 10:31:36 UTC

[GitHub] [groovy] aalmiray commented on a change in pull request #950: Add first batch of tests for @Generated. Relates to GROOVY-9164

aalmiray commented on a change in pull request #950: Add first batch of tests for @Generated. Relates to GROOVY-9164
URL: https://github.com/apache/groovy/pull/950#discussion_r291538253
 
 

 ##########
 File path: src/test/groovy/generated/AbstractGeneratedAstTestCase.groovy
 ##########
 @@ -6,12 +6,12 @@ import groovy.transform.Generated
 import java.lang.reflect.Constructor
 import java.lang.reflect.Method
 
-/**
- * @author Dmitry Vyazelenko
- * @author Andres Almiray
- */
 @CompileStatic
 abstract class AbstractGeneratedAstTestCase {
+    protected final Class<?> parseClass(String str) {
+        new GroovyClassLoader().parseClass(str.stripMargin())
 
 Review comment:
   Right. We took inspiration on another AST test that also uses '|' and stripMargin, thought it would be OK to keep it consistent.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services