@Test public void test() throws Exception { argument.apply(1, preparedStatement, null); Mockito.verify(preparedStatement).setString(1, "hello"); }
@Override public void apply(int position, PreparedStatement statement, StatementContext context) throws SQLException { statement.setString(position, value); }
StringArgument implements Argument { @Override public void apply(int position, PreparedStatement statement, StatementContext context) throws SQLException { statement.setString(position, value); } }
StringArgument implements Argument { @Override public void apply(int position, PreparedStatement statement, StatementContext context) throws SQLException { statement.setString(position, value); } StringArgument(String value); }
StringArgument implements Argument { @Override public void apply(int position, PreparedStatement statement, StatementContext context) throws SQLException { statement.setString(position, value); } StringArgument(String value); @Override void apply(int position, PreparedStatement statement, StatementContext context); }
StringArgument implements Argument { @Override public void apply(int position, PreparedStatement statement, StatementContext context) throws SQLException { statement.setString(position, value); } StringArgument(String value); @Override void apply(int position, PreparedStatement statement, StatementContext context);  }