/** * @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()); } }
/** * @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()); } }
/** * 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()); }
/** * @tests java.security.acl.AclNotFoundException#AclNotFoundException() */ public void testAclNotFoundException() { AclNotFoundException ex = new AclNotFoundException(); assertNull(ex.getMessage()); assertNull(ex.getCause()); }
/** * check default constructor */ public void testAclNotFoundException() { assertNotNull(new AclNotFoundException()); assertNull(new AclNotFoundException().getMessage()); assertNull(new AclNotFoundException().getCause()); }