@Test public void unmapRoute () { UnmapRouteRequest unmapRouteRequest = UnmapRouteRequest.builder() .applicationName(APPLICATION_NAME) .domain(randomUUID().toString()) .build(); Mono monoInt = mock(Mono.class); doReturn(routes).when(cloudFoundryOperations).routes(); doReturn(monoInt).when(routes).unmap(unmapRouteRequest); cloudFoundryApplicationPlatform.unmapRoute(unmapRouteRequest); verify(routes, times(1)).unmap(unmapRouteRequest); verify(monoInt, times(1)).block(); }
public void unmapRoute (UnmapRouteRequest unmapRouteRequest) { cloudFoundryOperations.routes().unmap(unmapRouteRequest).block(); }
CloudFoundryApplicationPlatform extends CloudFoundryPlatform { public void unmapRoute (UnmapRouteRequest unmapRouteRequest) { cloudFoundryOperations.routes().unmap(unmapRouteRequest).block(); } }
CloudFoundryApplicationPlatform extends CloudFoundryPlatform { public void unmapRoute (UnmapRouteRequest unmapRouteRequest) { cloudFoundryOperations.routes().unmap(unmapRouteRequest).block(); } @Autowired  CloudFoundryApplicationPlatform(); }
CloudFoundryApplicationPlatform extends CloudFoundryPlatform { public void unmapRoute (UnmapRouteRequest unmapRouteRequest) { cloudFoundryOperations.routes().unmap(unmapRouteRequest).block(); } @Autowired  CloudFoundryApplicationPlatform(); ContainerHealth checkPlatformHealth(); @Override List<Container> generateRoster(); @Override boolean isContainerRecycled(Container container); void rescaleApplication(String applicationName, int instances); void restartApplication(String applicationName); void unmapRoute(UnmapRouteRequest unmapRouteRequest); void mapRoute(MapRouteRequest mapRouteRequest); }
CloudFoundryApplicationPlatform extends CloudFoundryPlatform { public void unmapRoute (UnmapRouteRequest unmapRouteRequest) { cloudFoundryOperations.routes().unmap(unmapRouteRequest).block(); } @Autowired  CloudFoundryApplicationPlatform(); ContainerHealth checkPlatformHealth(); @Override List<Container> generateRoster(); @Override boolean isContainerRecycled(Container container); void rescaleApplication(String applicationName, int instances); void restartApplication(String applicationName); void unmapRoute(UnmapRouteRequest unmapRouteRequest); void mapRoute(MapRouteRequest mapRouteRequest);  }