Java 类java.security.acl.AclNotFoundException 实例源码

项目:In-the-Box-Fork    文件:AclNotFoundException2Test.java   
/**
 * @tests java.security.acl.AclNotFoundException#AclNotFoundException()
 */
@TestTargetNew(
    level = TestLevel.COMPLETE,
    notes = "",
    method = "AclNotFoundException",
    args = {}
)
public void test_Constructor() {
    // Test for method java.security.acl.AclNotFoundException()
    try {
        if (true) {
            throw new AclNotFoundException();
        }
        fail("Should have thrown AclNotFoundException");
    } catch (AclNotFoundException e) {
        assertEquals("AclNotFoundException.toString() should have been "
                + "'java.security.acl.AclNotFoundException' but was "
                + e.toString(),
                "java.security.acl.AclNotFoundException",
                e.toString());
    }
}
项目:freeVM    文件:AclNotFoundException2Test.java   
/**
 * @tests java.security.acl.AclNotFoundException#AclNotFoundException()
 */
public void test_Constructor() {
    // Test for method java.security.acl.AclNotFoundException()
    try {
        if (true) {
            throw new AclNotFoundException();
        }
        fail("Should have thrown AclNotFoundException");
    } catch (AclNotFoundException e) {
        assertEquals("AclNotFoundException.toString() should have been "
                + "'java.security.acl.AclNotFoundException' but was "
                + e.toString(),
                "java.security.acl.AclNotFoundException",
                e.toString());
    }
}
项目:In-the-Box-Fork    文件:AclNotFoundExceptionTest.java   
/**
 * check default constructor
 */
@TestTargetNew(
    level = TestLevel.COMPLETE,
    notes = "",
    method = "AclNotFoundException",
    args = {}
)
public void testAclNotFoundException() {
    assertNotNull(new AclNotFoundException());
    assertNull(new AclNotFoundException().getMessage());
    assertNull(new AclNotFoundException().getCause());
}
项目:cn1    文件:AclNotFoundExceptionTest.java   
/**
 * @tests java.security.acl.AclNotFoundException#AclNotFoundException()
 */
public void testAclNotFoundException() {
    AclNotFoundException ex = new AclNotFoundException();
    assertNull(ex.getMessage());
    assertNull(ex.getCause());
}
项目:freeVM    文件:AclNotFoundExceptionTest.java   
/**
 * check default constructor 
 */    
public void testAclNotFoundException() {
    assertNotNull(new AclNotFoundException());
    assertNull(new AclNotFoundException().getMessage());
    assertNull(new AclNotFoundException().getCause());
}
项目:freeVM    文件:AclNotFoundExceptionTest.java   
/**
 * @tests java.security.acl.AclNotFoundException#AclNotFoundException()
 */
public void testAclNotFoundException() {
    AclNotFoundException ex = new AclNotFoundException();
    assertNull(ex.getMessage());
    assertNull(ex.getCause());
}