ProxyServiceImpl extends AbstractService implements ProxyService { @Override public List<ProxyModel> getAllProxies() { return convert(proxyDao.getAllProxyTbls()); }  @Override List<ProxyModel> getActiveProxies(); @Override List<ProxyModel> getAllProxies(); @Override List<ProxyModel> getMonitorActiveProxies(); @Override void updateProxy(ProxyModel model); @Override void deleteProxy(long id); @Override void addProxy(ProxyModel model); @Override List<ProxyTbl> getActiveProxyTbls(); @Override ProxyChain getProxyChain(String backupDcId, String clusterId, String shardId); @Override ProxyChain getProxyChain(String tunnelId); @Override List<TunnelInfo> getProxyTunnels(String dcId, String ip); @Override List<ProxyChain> getProxyChains(String backupDcId, String clusterId); @Override List<ProxyPingStatsModel> getProxyMonitorCollectors(String dcName); @Override List<ProxyInfoModel> getAllProxyInfo(); @Override RetMessage deleteProxyChain(List<HostPort> proxies);  }
@Test public void testGetAllProxies() { List<ProxyModel> routes = service.getActiveProxies(); Collections.sort(routes, new Comparator<ProxyModel>() { @Override public int compare(ProxyModel o1, ProxyModel o2) { return (int) (o1.getId() - o2.getId()); } }); Assert.assertEquals(Lists.newArrayList(proxy1), routes); }
@Test public void testGetProxyAll() { Assert.assertNotNull(service.getAllProxies()); }