Use HTTPS URLs where applicable
This commit is contained in:
committed by
Andy Wilkinson
parent
00489c74ea
commit
81459efffa
@@ -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);
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user