@Test public void testGetRootCause() { IOException ioException = new IOException("This is a an IO Exception..."); Throwable actual = ETLUtil.getRootCause(ioException); String expected = "This is a an IO Exception..."; assertNotNull(actual); assertEquals("01", expected, actual.getMessage()); }
public static Throwable getRootCause(Throwable t) { while (t.getCause() != null) { t = t.getCause(); } return t; }
ETLUtil { public static Throwable getRootCause(Throwable t) { while (t.getCause() != null) { t = t.getCause(); } return t; } }
ETLUtil { public static Throwable getRootCause(Throwable t) { while (t.getCause() != null) { t = t.getCause(); } return t; } ETLUtil(); }
ETLUtil { public static Throwable getRootCause(Throwable t) { while (t.getCause() != null) { t = t.getCause(); } return t; } ETLUtil(); static Throwable getRootCause(Throwable t); static void logDuration(Logger logger, Class<?> cls, long start); static String getDuration(long start); static String getDuration(long start, long end); static String getSpecimenPurl(String unitID); static Logger getLogger(Class<?> forClass); static void truncate(DocumentType<T> dt); static void truncate(DocumentType<T> dt, SourceSystem ss); static String[] getTestGenera(); }
ETLUtil { public static Throwable getRootCause(Throwable t) { while (t.getCause() != null) { t = t.getCause(); } return t; } ETLUtil(); static Throwable getRootCause(Throwable t); static void logDuration(Logger logger, Class<?> cls, long start); static String getDuration(long start); static String getDuration(long start, long end); static String getSpecimenPurl(String unitID); static Logger getLogger(Class<?> forClass); static void truncate(DocumentType<T> dt); static void truncate(DocumentType<T> dt, SourceSystem ss); static String[] getTestGenera();  }