@Test public void testGetAdminService() { when(discoveryService.getServiceInstances(ServiceNameConsts.APOLLO_ADMINSERVICE)) .thenReturn(someServices); assertEquals(someServices, serviceController.getAdminService()); }
@RequestMapping("/admin") public List<ServiceDTO> getAdminService() { return discoveryService.getServiceInstances(ServiceNameConsts.APOLLO_ADMINSERVICE); }
ServiceController { @RequestMapping("/admin") public List<ServiceDTO> getAdminService() { return discoveryService.getServiceInstances(ServiceNameConsts.APOLLO_ADMINSERVICE); } }
ServiceController { @RequestMapping("/admin") public List<ServiceDTO> getAdminService() { return discoveryService.getServiceInstances(ServiceNameConsts.APOLLO_ADMINSERVICE); } ServiceController(final DiscoveryService discoveryService); }
ServiceController { @RequestMapping("/admin") public List<ServiceDTO> getAdminService() { return discoveryService.getServiceInstances(ServiceNameConsts.APOLLO_ADMINSERVICE); } ServiceController(final DiscoveryService discoveryService); @Deprecated @RequestMapping("/meta") List<ServiceDTO> getMetaService(); @RequestMapping("/config") List<ServiceDTO> getConfigService(
      @RequestParam(value = "appId", defaultValue = "") String appId,
      @RequestParam(value = "ip", required = false) String clientIp); @RequestMapping("/admin") List<ServiceDTO> getAdminService(); }
ServiceController { @RequestMapping("/admin") public List<ServiceDTO> getAdminService() { return discoveryService.getServiceInstances(ServiceNameConsts.APOLLO_ADMINSERVICE); } ServiceController(final DiscoveryService discoveryService); @Deprecated @RequestMapping("/meta") List<ServiceDTO> getMetaService(); @RequestMapping("/config") List<ServiceDTO> getConfigService(
      @RequestParam(value = "appId", defaultValue = "") String appId,
      @RequestParam(value = "ip", required = false) String clientIp); @RequestMapping("/admin") List<ServiceDTO> getAdminService();  }