コード例 #1
0
 public void testSysExceptionWithNestedSysException() {
   Exception exception = new SysException("test");
   exception.fillInStackTrace();
   SysException se = new SysException(null, exception);
   StackTraceElement[] st = se.getStackTrace();
   assertNotNull(st);
   assertFalse(st.length == 0);
 }
コード例 #2
0
 public void testSysExceptionWithoutNestedErrors() {
   SysException se = new SysException(null);
   StackTraceElement[] st = se.getStackTrace();
   assertNotNull(st);
   assertFalse(st.length == 0);
 }