harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r539046 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/SecurityManagerTest.java
Date Thu, 17 May 2007 17:57:46 GMT
Author: ayza
Date: Thu May 17 10:57:45 2007
New Revision: 539046

URL: http://svn.apache.org/viewvc?view=rev&rev=539046
Log:
Applying patch for test from HARMONY-2451 ([classlib][luni] SecurityManager.getClassContext
output differs from the RI)

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

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/SecurityManagerTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/SecurityManagerTest.java?view=diff&rev=539046&r1=539045&r2=539046
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/SecurityManagerTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/SecurityManagerTest.java
Thu May 17 10:57:45 2007
@@ -545,6 +545,14 @@
         assertFalse(mockSM.inClassLoader());
     }
 
+    /**
+     * @tests {@link java.lang.SecurityManager#inClassLoader()}
+     */
+    public void test_getClassContext() {
+        assertEquals("MockSecurityManager should be the first in the classes stack",
+                mockSM.getClassContext()[0], MockSecurityManager.class);
+    }
+
     // set some protected method to public for testing
     class MockSecurityManager extends SecurityManager {
 



Mime
View raw message