@Override protected Long insertOne(String name) { Domain entity = new Domain(name); crudDao.save(entity); Assert.assertFalse(entity.isNew()); return entity.getId(); }
@Test @Override public void update() { Long id1 = ids.get(0); // insertOne("name"); Map<String, Object> map = new HashMap<String, Object>(); map.put("name", "newName"); crudDao.update(id1, map); Domain entity = crudDao.load(id1); Assert.assertNotNull(entity); Assert.assertEquals("newName", entity.getName()); }