diff --git a/src/test/java/io/jenkins/plugins/artifact_manager_jclouds/MockBlobStore.java b/src/test/java/io/jenkins/plugins/artifact_manager_jclouds/MockBlobStore.java index 02905a33..b40ced24 100644 --- a/src/test/java/io/jenkins/plugins/artifact_manager_jclouds/MockBlobStore.java +++ b/src/test/java/io/jenkins/plugins/artifact_manager_jclouds/MockBlobStore.java @@ -141,7 +141,7 @@ public synchronized BlobStoreContext getContext() throws IOException { }). create(); server.start(); - baseURL = new URL("http://" + server.getInetAddress().getHostName() + ":" + server.getLocalPort() + "/"); + baseURL = new URL("http", server.getInetAddress().getHostName(), server.getLocalPort(), "/"); LOGGER.log(Level.INFO, "Mock server running at {0}", baseURL); } return context;