https://issues.apache.org/bugzilla/show_bug.cgi?id=54395

--- Comment #3 from Christopher Schultz <ch...@christopherschultz.net> ---
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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to