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

下面列出了怎么用org.apache.commons.lang.exception.Nestable的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: 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());
}
 
源代码2 项目: 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());
}
 
源代码3 项目: astor   文件: UnhandledExceptionTest.java

public void testGetCause() {
    final Throwable t = new NullPointerException();
    final Nestable n = new UnhandledException(t);
    assertEquals(t, n.getCause());
}
 
源代码4 项目: astor   文件: UnhandledExceptionTest.java

public void testGetCause() {
    final Throwable t = new NullPointerException();
    final Nestable n = new UnhandledException(t);
    assertEquals(t, n.getCause());
}
 
 类所在包
 类方法
 同包方法