You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by pa...@apache.org on 2015/06/11 06:33:14 UTC

[2/5] incubator-groovy git commit: GROOVY-7423: Added access to Method parameter names at runtime.

GROOVY-7423: Added access to Method parameter names at runtime.


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

Branch: refs/heads/master
Commit: 4a2496048f40a06660d4fc730514bae4293d162e
Parents: 7c735bf
Author: Nick Grealy <ni...@gmail.com>
Authored: Thu Jun 11 00:34:22 2015 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Thu Jun 11 12:47:58 2015 +1000

----------------------------------------------------------------------
 .../org/codehaus/groovy/control/CompilerConfigurationTest.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/4a249604/src/test/org/codehaus/groovy/control/CompilerConfigurationTest.java
----------------------------------------------------------------------
diff --git a/src/test/org/codehaus/groovy/control/CompilerConfigurationTest.java b/src/test/org/codehaus/groovy/control/CompilerConfigurationTest.java
index cb93092..636008a 100644
--- a/src/test/org/codehaus/groovy/control/CompilerConfigurationTest.java
+++ b/src/test/org/codehaus/groovy/control/CompilerConfigurationTest.java
@@ -122,6 +122,7 @@ public class CompilerConfigurationTest extends GroovyTestCase {
 
         init.setWarningLevel(WarningMessage.POSSIBLE_ERRORS);
         init.setDebug(true);
+        init.setParameters(true);
         init.setVerbose(false);
         init.setTolerance(720);
         init.setMinimumRecompilationInterval(234);
@@ -147,6 +148,7 @@ public class CompilerConfigurationTest extends GroovyTestCase {
 
         assertEquals(WarningMessage.POSSIBLE_ERRORS, init.getWarningLevel());
         assertEquals(true, init.getDebug());
+        assertEquals(true, init.getParameters());
         assertEquals(false, init.getVerbose());
         assertEquals(720, init.getTolerance());
         assertEquals(234, init.getMinimumRecompilationInterval());
@@ -194,6 +196,7 @@ public class CompilerConfigurationTest extends GroovyTestCase {
 
         init.setWarningLevel(WarningMessage.POSSIBLE_ERRORS);
         init.setDebug(false);
+        init.setParameters(false);
         init.setVerbose(true);
         init.setTolerance(55);
         init.setMinimumRecompilationInterval(975);
@@ -211,6 +214,7 @@ public class CompilerConfigurationTest extends GroovyTestCase {
 
         assertEquals(WarningMessage.POSSIBLE_ERRORS, init.getWarningLevel());
         assertEquals(false, init.getDebug());
+        assertEquals(false, init.getParameters());
         assertEquals(true, init.getVerbose());
         assertEquals(55, init.getTolerance());
         assertEquals(975, init.getMinimumRecompilationInterval());
@@ -244,4 +248,4 @@ public class CompilerConfigurationTest extends GroovyTestCase {
         assertEquals(initOut, config.getOutput());
         assertEquals(initTDFile, config.getTargetDirectory());
     }
-}
\ No newline at end of file
+}