Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save khauser/041d366c5020fcb7a2a09ae1e6149990 to your computer and use it in GitHub Desktop.
Save khauser/041d366c5020fcb7a2a09ae1e6149990 to your computer and use it in GitHub Desktop.
backendServiceUrl = environment.getProperty("DOCKER_HOST", "tcp://localhost:2376").replace("tcp", "http");
backendServiceUrl = backendServiceUrl.substring(0, backendServiceUrl.lastIndexOf(":"));
backendServiceUrl += ":8585";
when(restUtils.getServiceUrl("backend")).thenReturn(URI.create(this.getBackendServiceUrl()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment