org.apache.commons.lang.exception.Nestable Java Examples

The following examples show how to use org.apache.commons.lang.exception.Nestable. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UnhandledExceptionTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
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());
}
 
Example #2
Source File: UnhandledExceptionTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
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());
}
 
Example #3
Source File: UnhandledExceptionTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void testGetCause() {
    final Throwable t = new NullPointerException();
    final Nestable n = new UnhandledException(t);
    assertEquals(t, n.getCause());
}
 
Example #4
Source File: UnhandledExceptionTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
public void testGetCause() {
    final Throwable t = new NullPointerException();
    final Nestable n = new UnhandledException(t);
    assertEquals(t, n.getCause());
}