mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Polish FileSystemWatcherTests
See gh-25982
This commit is contained in:
parent
90a7450737
commit
06168bb130
@ -284,8 +284,7 @@ class FileSystemWatcherTests {
|
|||||||
this.watcher.addSourceDirectory(directory);
|
this.watcher.addSourceDirectory(directory);
|
||||||
this.watcher.start();
|
this.watcher.start();
|
||||||
this.watcher.stopAfter(1);
|
this.watcher.stopAfter(1);
|
||||||
ChangedFiles changedFiles = getSingleChangedFiles();
|
Set<ChangedFile> actual = getAllFileChanges();
|
||||||
Set<ChangedFile> actual = changedFiles.getFiles();
|
|
||||||
Set<ChangedFile> expected = new HashSet<>();
|
Set<ChangedFile> expected = new HashSet<>();
|
||||||
expected.add(new ChangedFile(directory, recreate, Type.ADD));
|
expected.add(new ChangedFile(directory, recreate, Type.ADD));
|
||||||
assertThat(actual).isEqualTo(expected);
|
assertThat(actual).isEqualTo(expected);
|
||||||
|
Loading…
Reference in New Issue
Block a user