use of java.security.acl.AclNotFoundException in project robovm by robovm.
the class AclNotFoundExceptionTest method testAclNotFoundException.
/**
* check default constructor
*/
public void testAclNotFoundException() {
assertNotNull(new AclNotFoundException());
assertNull(new AclNotFoundException().getMessage());
assertNull(new AclNotFoundException().getCause());
}
use of java.security.acl.AclNotFoundException in project core-java by SpineEventEngine.
the class VerifyShould method fail_assertThrowsWithCause_if_callable_throws_exception_with_different_causes.
@Test(expected = AssertionError.class)
public void fail_assertThrowsWithCause_if_callable_throws_exception_with_different_causes() {
final Throwable expectedCause = new EmptyStackException();
final Throwable actualCause = new AclNotFoundException();
final RuntimeException runtimeException = new RuntimeException(actualCause);
final Callable throwsRuntimeException = new Callable() {
@Override
public Object call() {
throw runtimeException;
}
};
assertThrowsWithCause(runtimeException.getClass(), expectedCause.getClass(), throwsRuntimeException);
}
Aggregations