RouteDao extends AbstractXpipeConsoleDAO { public List<RouteTbl> getAllAvailableRoutes() { return queryHandler.handleQuery(new DalQuery<List<RouteTbl>>() { @Override public List<RouteTbl> doQuery() throws DalException { return dao.findAllActive(RouteTblEntity.READSET_MAIN); } }); }  List<RouteTbl> getAllAvailableRoutes(); void insert(RouteTbl routeTbl); void delete(long id); List<RouteTbl> getAllRoutes(); void update(RouteTbl routeTbl);  }
@Test public void testGetAllAvailableRoutes() { List<RouteTbl> routes = routeDao.getAllAvailableRoutes(); Assert.assertEquals(1, routes.size()); RouteTbl target = routes.get(0); Assert.assertEquals(proto1.getRouteOrgId(), target.getRouteOrgId()); Assert.assertEquals(proto1.getTag(), target.getTag()); Assert.assertEquals(proto1.getDstDcId(), target.getDstDcId()); Assert.assertEquals(proto1.getDstProxyIds(), target.getDstProxyIds()); Assert.assertEquals(proto1.getSrcDcId(), target.getSrcDcId()); Assert.assertEquals(proto1.getSrcProxyIds(), target.getSrcProxyIds()); }