EmpireGroupDao extends EmpireDao implements GroupDao { @Override public Group create() { return new Group(); } EmpireGroupDao(ProarcDatabase db); @Override Group create(); @Override void update(Group group); @Override Group find(int id); @Override List<Group> find(Integer id, String grpName, String grpRemoteName, String grpRemoteType);  }
@Test public void testCreate() throws Exception { IDataSet db = database( support.loadFlatXmlDataStream(getClass(), "group.xml") ); support.cleanInsert(support.getConnection(tx), db); final Integer id = 10; support.initSequences(tx, id, schema.tableUserGroup.id.getSequenceName()); tx.commit(); Group group = Group.create("createName", "createTitle"); group.setCreated(new Timestamp(System.currentTimeMillis())); dao.update(group); assertEquals(id, group.getId()); Group result = dao.find(group.getId()); assertEquals(group.getId(), result.getId()); assertEquals(group.getCreated(), result.getCreated()); assertEquals(group.getName(), result.getName()); assertEquals(group.getRemoteName(), result.getRemoteName()); assertEquals(group.getTimestamp(), result.getTimestamp()); assertEquals(group.getTitle(), result.getTitle()); }