use of org.jdbi.v3.core.SampleBean in project jdbi by jdbi.
the class FieldMapperTest method shouldBeCaseInSensitiveOfColumnAndFieldNames.
@Test
public void shouldBeCaseInSensitiveOfColumnAndFieldNames() throws Exception {
mockColumns("LoNgfielD");
Long aLongVal = 100L;
when(resultSet.getLong(1)).thenReturn(aLongVal);
when(resultSet.wasNull()).thenReturn(false);
SampleBean sampleBean = mapper.map(resultSet, ctx);
assertThat(sampleBean.getLongField()).isEqualTo(aLongVal);
}
Aggregations