@Test void setObject() throws SQLException { PreparedStatementUtil.setObject(preparedStatement, 3, "Foo"); verify(preparedStatement).setObject(3, "Foo"); verifyNoMoreInteractions(preparedStatement); }
public static void setObject(PreparedStatement preparedStatement, int i, Object arg) { try { preparedStatement.setObject(i, arg); } catch (SQLException e) { throw new RuntimeSqlException(e); } }
PreparedStatementUtil extends UtilityClass { public static void setObject(PreparedStatement preparedStatement, int i, Object arg) { try { preparedStatement.setObject(i, arg); } catch (SQLException e) { throw new RuntimeSqlException(e); } } }
PreparedStatementUtil extends UtilityClass { public static void setObject(PreparedStatement preparedStatement, int i, Object arg) { try { preparedStatement.setObject(i, arg); } catch (SQLException e) { throw new RuntimeSqlException(e); } }  }
PreparedStatementUtil extends UtilityClass { public static void setObject(PreparedStatement preparedStatement, int i, Object arg) { try { preparedStatement.setObject(i, arg); } catch (SQLException e) { throw new RuntimeSqlException(e); } }  static void setObject(PreparedStatement preparedStatement, int i, Object arg); static int executeUpdate(PreparedStatement preparedStatement); static boolean execute(PreparedStatement preparedStatement); static ResultSet executeQuery(PreparedStatement preparedStatement); }
PreparedStatementUtil extends UtilityClass { public static void setObject(PreparedStatement preparedStatement, int i, Object arg) { try { preparedStatement.setObject(i, arg); } catch (SQLException e) { throw new RuntimeSqlException(e); } }  static void setObject(PreparedStatement preparedStatement, int i, Object arg); static int executeUpdate(PreparedStatement preparedStatement); static boolean execute(PreparedStatement preparedStatement); static ResultSet executeQuery(PreparedStatement preparedStatement);  }