Polish
Closes gh-10948
This commit is contained in:
committed by
Stephane Nicoll
parent
2de0247ce9
commit
cbb483735d
@@ -261,7 +261,7 @@ public class FileSystemWatcherTests {
|
||||
this.watcher.start();
|
||||
FileCopyUtils.copy("abc".getBytes(), file);
|
||||
Thread.sleep(100);
|
||||
assertThat(this.changes.size()).isEqualTo(0);
|
||||
assertThat(this.changes).isEmpty();
|
||||
FileCopyUtils.copy("abc".getBytes(), trigger);
|
||||
this.watcher.stopAfter(1);
|
||||
ChangedFiles changedFiles = getSingleChangedFiles();
|
||||
|
||||
@@ -54,13 +54,13 @@ public class ChangeableUrlsTests {
|
||||
@Test
|
||||
public void fileUrl() throws Exception {
|
||||
URL url = this.temporaryFolder.newFile().toURI().toURL();
|
||||
assertThat(ChangeableUrls.fromUrls(url).size()).isEqualTo(0);
|
||||
assertThat(ChangeableUrls.fromUrls(url)).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void httpUrl() throws Exception {
|
||||
URL url = new URL("http://spring.io");
|
||||
assertThat(ChangeableUrls.fromUrls(url).size()).isEqualTo(0);
|
||||
assertThat(ChangeableUrls.fromUrls(url)).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -69,7 +69,7 @@ public class ChangeableUrlsTests {
|
||||
makeUrl("spring-boot-autoconfigure"), makeUrl("spring-boot-actuator"),
|
||||
makeUrl("spring-boot-starter"),
|
||||
makeUrl("spring-boot-starter-some-thing"));
|
||||
assertThat(urls.size()).isEqualTo(0);
|
||||
assertThat(urls).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -168,7 +168,7 @@ public class RestartClassLoaderTests {
|
||||
String name = PACKAGE_PATH + "/Sample.txt";
|
||||
this.updatedFiles.addFile(name, new ClassLoaderFile(Kind.DELETED, null));
|
||||
List<URL> resources = toList(this.reloadClassLoader.getResources(name));
|
||||
assertThat(resources.size()).isEqualTo(0);
|
||||
assertThat(resources).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user