Clean remote url if necessary
Make sure that the remote URL does not contain a trailing slash. Closes gh-4297
This commit is contained in:
@@ -79,6 +79,13 @@ public class RemoteUrlPropertyExtractorTests {
|
||||
is(nullValue()));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void cleanValidUrl() throws Exception {
|
||||
ApplicationContext context = doTest("http://localhost:8080/");
|
||||
assertThat(context.getEnvironment().getProperty("remoteUrl"),
|
||||
equalTo("http://localhost:8080"));
|
||||
}
|
||||
|
||||
private ApplicationContext doTest(String... args) {
|
||||
SpringApplication application = new SpringApplication(Config.class);
|
||||
application.setWebEnvironment(false);
|
||||
|
||||
Reference in New Issue
Block a user