FileDocCategorySizeDatePackage
SecurityPermission2Test.javaAPI DocAndroid 1.5 API2584Wed May 06 22:41:06 BST 2009org.apache.harmony.security.tests.java.security

SecurityPermission2Test

public class SecurityPermission2Test extends TestCase

Fields Summary
Constructors Summary
Methods Summary
public voidtest_ConstructorLjava_lang_String()

tests
java.security.SecurityPermission#SecurityPermission(java.lang.String)

        // Test for method java.security.SecurityPermission(java.lang.String)
        assertEquals("create securityPermission constructor(string) failed",
                "SecurityPermission(string)", new SecurityPermission("SecurityPermission(string)").getName()
                        );

    
public voidtest_ConstructorLjava_lang_StringLjava_lang_String()

tests
java.security.SecurityPermission#SecurityPermission(java.lang.String, java.lang.String)

        // Test for method java.security.SecurityPermission(java.lang.String,
        // java.lang.String)
        SecurityPermission sp = new SecurityPermission("security.file", "write");
        assertEquals("creat securityPermission constructor(string,string) failed",
                "security.file", sp.getName());