FileDocCategorySizeDatePackage
RuntimePermissionTest.javaAPI DocAndroid 1.5 API2369Wed May 06 22:41:04 BST 2009org.apache.harmony.luni.tests.java.lang

RuntimePermissionTest

public class RuntimePermissionTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
public voidtest_ConstructorLjava_lang_String()

tests
java.lang.RuntimePermission#RuntimePermission(java.lang.String)

        // Test for method java.lang.RuntimePermission(java.lang.String)
        RuntimePermission r = new RuntimePermission("createClassLoader");
        assertEquals("Returned incorrect name", 
                "createClassLoader", r.getName());

    
public voidtest_ConstructorLjava_lang_StringLjava_lang_String()

tests
java.lang.RuntimePermission#RuntimePermission(java.lang.String, java.lang.String)

        // Test for method java.lang.RuntimePermission(java.lang.String,
        // java.lang.String)
        RuntimePermission r = new RuntimePermission("createClassLoader", null);
        assertEquals("Returned incorrect name", 
                "createClassLoader", r.getName());