use of org.simpleflatmapper.test.beans.DbExtendedType in project SimpleFlatMapper by arnaudroger.
the class JooqMapperTest method testMapperDbExtendedType.
@Test
public void testMapperDbExtendedType() throws Exception {
Connection conn = DbHelper.objectDb();
DSLContext dsl = DSL.using(new DefaultConfiguration().set(conn).set(SQLDialect.HSQLDB).set(SfmRecordMapperProviderFactory.newInstance().newProvider()));
List<DbExtendedType> list = dsl.select().from("db_extended_type").fetchInto(DbExtendedType.class);
assertEquals(1, list.size());
DbExtendedType o = list.get(0);
DbExtendedType.assertDbExtended(o);
}
Aggregations