Search in sources :

Example 1 with IotProductStatus

use of org.nutz.dao.test.meta.issueXXX.IotProductStatus 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());
}
Also used : IotProductStatus(org.nutz.dao.test.meta.issueXXX.IotProductStatus) IotObject(org.nutz.dao.test.meta.issueXXX.IotObject) NutMap(org.nutz.lang.util.NutMap) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 IotObject (org.nutz.dao.test.meta.issueXXX.IotObject)1 IotProductStatus (org.nutz.dao.test.meta.issueXXX.IotProductStatus)1 NutMap (org.nutz.lang.util.NutMap)1