RouteDao extends AbstractXpipeConsoleDAO { public List<RouteTbl> getAllRoutes() { return queryHandler.handleQuery(new DalQuery<List<RouteTbl>>() { @Override public List<RouteTbl> doQuery() throws DalException { return dao.findAll(RouteTblEntity.READSET_MAIN); } }); }  List<RouteTbl> getAllAvailableRoutes(); void insert(RouteTbl routeTbl); void delete(long id); List<RouteTbl> getAllRoutes(); void update(RouteTbl routeTbl);  }
@Test public void testGetAllRoutes() { List<RouteTbl> routes = routeDao.getAllRoutes(); Assert.assertEquals(2, routes.size()); }