Use HTTPS URLs where applicable

This commit is contained in:
dreis2211
2018-01-03 17:07:10 +01:00
committed by Andy Wilkinson
parent 00489c74ea
commit 81459efffa
28 changed files with 167 additions and 161 deletions

View File

@@ -70,7 +70,7 @@ public class ClassPathFileSystemWatcherTests {
Map<String, Object> properties = new HashMap<>();
File folder = this.temp.newFolder();
List<URL> urls = new ArrayList<>();
urls.add(new URL("http://spring.io"));
urls.add(new URL("https://spring.io"));
urls.add(folder.toURI().toURL());
properties.put("urls", urls);
MapPropertySource propertySource = new MapPropertySource("test", properties);

View File

@@ -63,6 +63,12 @@ public class ChangeableUrlsTests {
assertThat(ChangeableUrls.fromUrls(url)).isEmpty();
}
@Test
public void httpsUrl() throws Exception {
URL url = new URL("https://spring.io");
assertThat(ChangeableUrls.fromUrls(url)).isEmpty();
}
@Test
public void skipsUrls() throws Exception {
ChangeableUrls urls = ChangeableUrls.fromUrls(makeUrl("spring-boot"),