Java 类org.apache.commons.lang.exception.Nestable 实例源码

项目:astor    文件:UnhandledExceptionTest.java   
public void testGetCauseAndGetMessage() {
    final Throwable t = new NullPointerException();
    final String msg = "nullArg";
    final Nestable n = new UnhandledException(msg, t);
    assertEquals(t, n.getCause());
    assertEquals(msg, n.getMessage());
}
项目:astor    文件:UnhandledExceptionTest.java   
public void testGetCauseAndGetMessage() {
    final Throwable t = new NullPointerException();
    final String msg = "nullArg";
    final Nestable n = new UnhandledException(msg, t);
    assertEquals(t, n.getCause());
    assertEquals(msg, n.getMessage());
}
项目:astor    文件:UnhandledExceptionTest.java   
public void testGetCause() {
    final Throwable t = new NullPointerException();
    final Nestable n = new UnhandledException(t);
    assertEquals(t, n.getCause());
}
项目:astor    文件:UnhandledExceptionTest.java   
public void testGetCause() {
    final Throwable t = new NullPointerException();
    final Nestable n = new UnhandledException(t);
    assertEquals(t, n.getCause());
}