FileDocCategorySizeDatePackage
ReflectPermissionTest.javaAPI DocAndroid 1.5 API2862Wed May 06 22:41:04 BST 2009tests.api.java.lang.reflect

ReflectPermissionTest

public class ReflectPermissionTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
protected voidsetUp()
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

    
protected voidtearDown()
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.

    
public voidtest_ConstructorLjava_lang_String()

tests
java.lang.reflect.ReflectPermission#ReflectPermission(java.lang.String)

        // Test for method java.lang.reflect.ReflectPermission(java.lang.String)
        String permString = new ReflectPermission("Blah").toString();
        assertTrue("Incorrect permission constructed", permString.indexOf(
                "java.lang.reflect.ReflectPermission Blah") >= 0);
    
public voidtest_ConstructorLjava_lang_StringLjava_lang_String()

tests
java.lang.reflect.ReflectPermission#ReflectPermission(java.lang.String, java.lang.String)

        // Test for method java.lang.reflect.ReflectPermission(java.lang.String,
        // java.lang.String)
        assertTrue("Incorrect permission constructed", new ReflectPermission(
                "Blah", "suppressAccessChecks").toString().indexOf(
                "java.lang.reflect.ReflectPermission Blah") >= 0);