@Test public void mapRoute () { MapRouteRequest mapRouteRequest = MapRouteRequest.builder() .applicationName(APPLICATION_NAME) .domain(randomUUID().toString()) .build(); Mono monoInt = mock(Mono.class); doReturn(routes).when(cloudFoundryOperations).routes(); doReturn(monoInt).when(routes).map(mapRouteRequest); cloudFoundryApplicationPlatform.mapRoute(mapRouteRequest); verify(routes, times(1)).map(mapRouteRequest); verify(monoInt, times(1)).block(); }
public void mapRoute (MapRouteRequest mapRouteRequest) { cloudFoundryOperations.routes().map(mapRouteRequest).block(); }
CloudFoundryApplicationPlatform extends CloudFoundryPlatform { public void mapRoute (MapRouteRequest mapRouteRequest) { cloudFoundryOperations.routes().map(mapRouteRequest).block(); } }
CloudFoundryApplicationPlatform extends CloudFoundryPlatform { public void mapRoute (MapRouteRequest mapRouteRequest) { cloudFoundryOperations.routes().map(mapRouteRequest).block(); } @Autowired  CloudFoundryApplicationPlatform(); }
CloudFoundryApplicationPlatform extends CloudFoundryPlatform { public void mapRoute (MapRouteRequest mapRouteRequest) { cloudFoundryOperations.routes().map(mapRouteRequest).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 mapRoute (MapRouteRequest mapRouteRequest) { cloudFoundryOperations.routes().map(mapRouteRequest).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);  }