use of org.simpleflatmapper.datastax.impl.RowGetterFactory in project SimpleFlatMapper by arnaudroger.
the class RowGetterFactoryTest method testDoubleGetterOnNullValue.
@Test
public void testDoubleGetterOnNullValue() throws Exception {
when(row.isNull(1)).thenReturn(true);
assertEquals(null, new RowGetterFactory(null).newGetter(Double.class, columnKey).get(row));
}
use of org.simpleflatmapper.datastax.impl.RowGetterFactory in project SimpleFlatMapper by arnaudroger.
the class RowGetterFactoryTest method testBooleanGetterOnNullValue.
@Test
public void testBooleanGetterOnNullValue() throws Exception {
when(row.isNull(1)).thenReturn(true);
assertEquals(null, new RowGetterFactory(null).newGetter(Boolean.class, columnKey).get(row));
}
use of org.simpleflatmapper.datastax.impl.RowGetterFactory in project SimpleFlatMapper by arnaudroger.
the class RowGetterFactoryTest method testLongGetterOnNullValue.
@Test
public void testLongGetterOnNullValue() throws Exception {
when(row.isNull(1)).thenReturn(true);
assertEquals(null, new RowGetterFactory(null).newGetter(Long.class, columnKey).get(row));
}
use of org.simpleflatmapper.datastax.impl.RowGetterFactory in project SimpleFlatMapper by arnaudroger.
the class RowGetterFactoryTest method testShortGetterOnNullValue.
@Test
public void testShortGetterOnNullValue() throws Exception {
when(row.isNull(1)).thenReturn(true);
assertEquals(null, new RowGetterFactory(null).newGetter(Short.class, columnKey.datatype(DataType.bigint())).get(row));
}
Aggregations