RouteDao extends AbstractXpipeConsoleDAO { public void delete(long id) { RouteTbl proto = dao.createLocal().setId(id); queryHandler.handleUpdate(new DalQuery<Integer>() { @Override public Integer doQuery() throws DalException { return dao.deleteRoute(proto, RouteTblEntity.UPDATESET_FULL); } }); }  List<RouteTbl> getAllAvailableRoutes(); void insert(RouteTbl routeTbl); void delete(long id); List<RouteTbl> getAllRoutes(); void update(RouteTbl routeTbl);  }
@Test public void testDelete() { routeDao.delete(proto1.getId()); Assert.assertEquals(1, routeDao.getAllRoutes().size()); }