https://issues.apache.org/bugzilla/show_bug.cgi?id=54395
--- Comment #5 from Konstantin Kolinko <knst.koli...@gmail.com> --- (In reply to comment #3) > FWIW, test cases using the following idiom: > (..) > can be written somewhat more simply like this: > > try { > props.getJdbcInterceptorsAsArray(); > } catch (Exception e) { > assertFail("Didn't expect exception"); > } 1. Just add "throws Exception" to the test method. JUnit notices the thrown exception and the test does not pass. 2. It is the first time I am seeing "assertFail". A typo? The method that I know about is called fail(message) (Assert.fail(..)). -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org