Binders { public static Binder integerBinder() { return INTEGER_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 integerBinderBindsBigInteger() throws SQLException { Binder binder = Binders.integerBinder(); binder.bind(stmt, 1, new BigInteger("12")); verify(stmt).setObject(1, "12", Types.BIGINT); }
@Test public void integerBinderBindsString() throws SQLException { Binder binder = Binders.integerBinder(); binder.bind(stmt, 1, "12"); verify(stmt).setObject(1, "12", Types.BIGINT); }
@Test public void integerBinderBindsEnum() throws SQLException { Binder binder = Binders.integerBinder(); binder.bind(stmt, 1, TestEnum.FOO); verify(stmt).setInt(1, 0); }
@Test public void integerBinderBindsObject() throws SQLException { Binder binder = Binders.integerBinder(); binder.bind(stmt, 1, 27); verify(stmt).setObject(1, 27); }
@Test public void integerBinderBindsNull() throws SQLException { Binder binder = Binders.integerBinder(); binder.bind(stmt, 1, null); verify(stmt).setObject(1, null); }