Binders { public static Binder decimalBinder() { return DECIMAL_BINDER; } private  Binders(); static Binder defaultBinder(); static Binder stringBinder(); static Binder dateBinder(); static Binder timestampBinder(); static Binder timeBinder(); static Binder decimalBinder(); static Binder integerBinder();  }
@Test public void decimalBinderBindsString() throws SQLException { Binder binder = Binders.decimalBinder(); binder.bind(stmt, 1, "12.45"); verify(stmt).setBigDecimal(1, new BigDecimal("12.45")); }
@Test public void decimalBinderBindsObject() throws SQLException { Binder binder = Binders.decimalBinder(); binder.bind(stmt, 1, 12.45); verify(stmt).setObject(1, 12.45); }
@Test public void decimalBinderBindsNull() throws SQLException { Binder binder = Binders.decimalBinder(); binder.bind(stmt, 1, null); verify(stmt).setObject(1, null); }