use of org.nutz.dao.test.meta.issueXXX.IotObject in project nutz by nutzam.
the class SimpleDaoTest method test_wizzer.
@Test
public void test_wizzer() {
dao.create(IotObject.class, true);
IotObject a = new IotObject();
a.setStat(IotProductStatus.DEVELOP);
dao.insert(a);
a = dao.fetch(IotObject.class, a.getId());
assertNotNull(a);
assertEquals(IotProductStatus.DEVELOP, a.getStat());
System.out.println(a.getStat().value());
for (IotProductStatus stat : IotProductStatus.values()) {
System.out.println("-->" + stat.value());
}
dao.setupProperties(new NutMap());
}
Aggregations