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()); }
public void testGetCause() { final Throwable t = new NullPointerException(); final Nestable n = new UnhandledException(t); assertEquals(t, n.getCause()); }