https://issues.apache.org/bugzilla/show_bug.cgi?id=54395
--- Comment #3 from Christopher Schultz <[email protected]> --- FWIW, test cases using the following idiom: caught = null; try { props.getJdbcInterceptorsAsArray(); } catch (Exception e) { caught = e; } assertNull(caught); can be written somewhat more simply like this: try { props.getJdbcInterceptorsAsArray(); } catch (Exception e) { assertFail("Didn't expect exception"); } Likewise: caught = null; try { props.getJdbcInterceptorsAsArray(); } catch (Exception e) { caught = e; } assertNotNull(caught); can be written like this: try { props.getJdbcInterceptorsAsArray(); assertFail("Expected Exception"); } catch (Exception e) { // Expected } -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
