harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r999601 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/SecurityManagerTest.java
Date Tue, 21 Sep 2010 20:26:38 GMT
Author: tellison
Date: Tue Sep 21 20:26:37 2010
New Revision: 999601

URL: http://svn.apache.org/viewvc?rev=999601&view=rev
Log:
Oops, these were not supposed to be part of r999591.
Backing out.

Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/SecurityManagerTest.java

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/SecurityManagerTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/SecurityManagerTest.java?rev=999601&r1=999600&r2=999601&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/SecurityManagerTest.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/SecurityManagerTest.java
Tue Sep 21 20:26:37 2010
@@ -292,30 +292,6 @@ public class SecurityManagerTest extends
     }
 
     /**
-     * @tests {@link java.lang.SecurityManager#checkExit(int)}
-     */
-
-    @SuppressWarnings("nls")
-    public void test_checkExit_int1() {
-        SecurityManager mySecMngr = new SecurityManager(){
-            public void checkPermission(Permission permission) {
-                if (!permission.equals(new RuntimePermission("exitVM.1") )) {
-                    throw new SecurityException("unknown permission");
-                }
-            }
-        };
-
-        mySecMngr.checkExit(1);
-
-        try {
-            mySecMngr.checkExit(2);
-            fail("Should throw SecurityException");
-        } catch (SecurityException se) {
-            // expected
-        }
-    }
-
-    /**
      * @tests {@link java.lang.SecurityManager#checkLink(String)}
      */
     @SuppressWarnings("nls")



Mime
View raw message