Search in sources :

Example 1 with Issue1302Master

use of org.nutz.dao.test.meta.issue1302.Issue1302Master in project nutz by nutzam.

the class SimpleDaoTest method test_issue_1302.

@Test
public void test_issue_1302() {
    dao.create(Issue1302Master.class, false);
    Issue1302Master pojo = new Issue1302Master();
    pojo.setName(R.UU32());
    pojo.setAct(Issue1302UserAction.VIEW);
    dao.insert(pojo);
    System.out.println(DB.SQLSERVER.ordinal());
    pojo = dao.fetch(Issue1302Master.class, pojo.getName());
    assertEquals(Issue1302UserAction.VIEW, pojo.getAct());
}
Also used : Issue1302Master(org.nutz.dao.test.meta.issue1302.Issue1302Master) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Issue1302Master (org.nutz.dao.test.meta.issue1302.Issue1302Master)1