groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [1/3] incubator-groovy git commit: remove main and suite methods
Date Fri, 10 Jul 2015 17:25:10 GMT
Repository: incubator-groovy
Updated Branches:
  refs/heads/master d6578c462 -> 2de9d9f37


remove main and suite methods


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

Branch: refs/heads/master
Commit: 02df10993dcdd67d57175310894b47e844305b67
Parents: d6578c4
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Fri Jul 10 18:48:17 2015 +0200
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Fri Jul 10 18:48:17 2015 +0200

----------------------------------------------------------------------
 src/test/groovy/security/RunOneGroovyScript.java | 11 -----------
 src/test/groovy/security/SecurityTest.java       |  8 --------
 2 files changed, 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/02df1099/src/test/groovy/security/RunOneGroovyScript.java
----------------------------------------------------------------------
diff --git a/src/test/groovy/security/RunOneGroovyScript.java b/src/test/groovy/security/RunOneGroovyScript.java
index ee13530..3b2fec8 100644
--- a/src/test/groovy/security/RunOneGroovyScript.java
+++ b/src/test/groovy/security/RunOneGroovyScript.java
@@ -31,17 +31,6 @@ public class RunOneGroovyScript extends SecurityTestSupport {
 
     protected static String file;
 
-    public static void main(String[] args) {
-        if (args.length > 0) {
-            file = args[0];
-        }
-        TestRunner.run(suite());
-    }
-
-    public static Test suite() {
-        return new TestSuite(RunOneGroovyScript.class);
-    }
-
     public void testScript() {
         String fileName = System.getProperty("script", file);
         if (fileName == null) {

http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/02df1099/src/test/groovy/security/SecurityTest.java
----------------------------------------------------------------------
diff --git a/src/test/groovy/security/SecurityTest.java b/src/test/groovy/security/SecurityTest.java
index 25ef815..a3bed8d 100644
--- a/src/test/groovy/security/SecurityTest.java
+++ b/src/test/groovy/security/SecurityTest.java
@@ -43,14 +43,6 @@ import java.util.PropertyPermission;
  */
 public class SecurityTest extends SecurityTestSupport {
 
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    public static Test suite() {
-        return new TestSuite(SecurityTest.class);
-    }
-
     public void testForbiddenProperty() {
         String script = "System.getProperty(\"user.home\")";
         assertExecute(script, null, new PropertyPermission("user.home", "read"));


Mime
View raw message