@Test public void testClose_AutoCloseable() throws Exception { closeQuietly((AutoCloseable[]) null); AutoCloseable mock = mock(AutoCloseable.class); closeQuietly(null, mock); doThrow(new IOException("Expected")).when(mock).close(); closeQuietly(mock); }
public static void closeQuietly(AutoCloseable... closeables) { Closer.closeQuietly(closeables); }
JdbcUtil { public static void closeQuietly(AutoCloseable... closeables) { Closer.closeQuietly(closeables); } }
JdbcUtil { public static void closeQuietly(AutoCloseable... closeables) { Closer.closeQuietly(closeables); }  }
JdbcUtil { public static void closeQuietly(AutoCloseable... closeables) { Closer.closeQuietly(closeables); }  static void closeQuietly(AutoCloseable... closeables); static void rollback(Savepoint svp, Connection sqlConnection); static void rollback(Connection sqlConnection); static void commit(Connection sqlConnection); static Savepoint createSavepoint(Connection sqlConnection); static Connection testConnection(Connection sqlConnection, String testStatement, boolean debugMode); static Properties mergeConnectionProperties(Properties p, String username, String password); static Connection getConnection(AdaptrisMessage msg, AdaptrisConnection adpCon); static void rollback(Connection sqlConnection, AdaptrisMessage msg); static void commit(Connection sqlConnection, AdaptrisMessage msg); }
JdbcUtil { public static void closeQuietly(AutoCloseable... closeables) { Closer.closeQuietly(closeables); }  static void closeQuietly(AutoCloseable... closeables); static void rollback(Savepoint svp, Connection sqlConnection); static void rollback(Connection sqlConnection); static void commit(Connection sqlConnection); static Savepoint createSavepoint(Connection sqlConnection); static Connection testConnection(Connection sqlConnection, String testStatement, boolean debugMode); static Properties mergeConnectionProperties(Properties p, String username, String password); static Connection getConnection(AdaptrisMessage msg, AdaptrisConnection adpCon); static void rollback(Connection sqlConnection, AdaptrisMessage msg); static void commit(Connection sqlConnection, AdaptrisMessage msg);  }