@Test public void computeManagementServerIpList() throws Exception { when(managementServerService.discoverManagementServerIps()).thenReturn(Stream.of("server1Ip", "server2Ip")); final String ipList = new SystemVmManagerBaseImpl().computeManagementServerIpList(managementServerService); assertThat(ipList, is("server1Ip,server2Ip")); }
protected String computeManagementServerIpList(final ManagementServerService managementServerService) { return managementServerService.discoverManagementServerIps() .collect(Collectors.joining(PROPERTY_LIST_SEPARATOR)); }
SystemVmManagerBase extends ManagerBase implements SystemVmLoadScanHandler<Long> { protected String computeManagementServerIpList(final ManagementServerService managementServerService) { return managementServerService.discoverManagementServerIps() .collect(Collectors.joining(PROPERTY_LIST_SEPARATOR)); } }
SystemVmManagerBase extends ManagerBase implements SystemVmLoadScanHandler<Long> { protected String computeManagementServerIpList(final ManagementServerService managementServerService) { return managementServerService.discoverManagementServerIps() .collect(Collectors.joining(PROPERTY_LIST_SEPARATOR)); }  }
SystemVmManagerBase extends ManagerBase implements SystemVmLoadScanHandler<Long> { protected String computeManagementServerIpList(final ManagementServerService managementServerService) { return managementServerService.discoverManagementServerIps() .collect(Collectors.joining(PROPERTY_LIST_SEPARATOR)); }  void resizePool(final Long pool, final AfterScanAction action, final Object actionArgs); List<String> GenerateAllowedCidrs(final String cidrList); }
SystemVmManagerBase extends ManagerBase implements SystemVmLoadScanHandler<Long> { protected String computeManagementServerIpList(final ManagementServerService managementServerService) { return managementServerService.discoverManagementServerIps() .collect(Collectors.joining(PROPERTY_LIST_SEPARATOR)); }  void resizePool(final Long pool, final AfterScanAction action, final Object actionArgs); List<String> GenerateAllowedCidrs(final String cidrList);  }