Esempio n. 1
0
  @Test
  public void testIsJDBC3() {
    Overrider overrider = new Overrider();

    Assert.assertEquals(false, TypeHandlerUtils.isJDBC3(overrider));

    overrider.override(MjdbcConstants.OVERRIDE_INT_JDBC3, true);
    Assert.assertEquals(true, TypeHandlerUtils.isJDBC3(overrider));

    overrider.override(MjdbcConstants.OVERRIDE_INT_JDBC3, false);
    Assert.assertEquals(false, TypeHandlerUtils.isJDBC3(overrider));
  }