Search in sources :

Example 1 with PojoSql

use of org.nutz.dao.test.meta.issue1074.PojoSql in project nutz by nutzam.

the class SimpleDaoTest method test_pojo_sql_params.

@Test
public void test_pojo_sql_params() {
    dao.create(PojoSql.class, false);
    PojoSql pojo = new PojoSql();
    pojo.setName(R.UU32());
    dao.insert(pojo);
    assertEquals(pojo.getName(), pojo.getNickname());
}
Also used : PojoSql(org.nutz.dao.test.meta.issue1074.PojoSql) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 PojoSql (org.nutz.dao.test.meta.issue1074.PojoSql)1