diff --git a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSystemWatcherTests.java b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSystemWatcherTests.java index 9e9cdee1bd2..1af417ffad5 100644 --- a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSystemWatcherTests.java +++ b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSystemWatcherTests.java @@ -136,7 +136,7 @@ public class FileSystemWatcherTests { } @Test - public void waitsForIdleTime() throws Exception { + public void waitsForPollingInterval() throws Exception { this.changes.clear(); setupWatcher(100, 1); File folder = startWithNewFolder(); @@ -148,7 +148,7 @@ public class FileSystemWatcherTests { } @Test - public void waitsForQuietTime() throws Exception { + public void waitsForQuietPeriod() throws Exception { setupWatcher(300, 200); File folder = startWithNewFolder(); for (int i = 0; i < 10; i++) { @@ -266,8 +266,8 @@ public class FileSystemWatcherTests { assertEquals(expected, actual); } - private void setupWatcher(long idleTime, long quietTime) { - this.watcher = new FileSystemWatcher(false, idleTime, quietTime); + private void setupWatcher(long pollingInterval, long quietPeriod) { + this.watcher = new FileSystemWatcher(false, pollingInterval, quietPeriod); this.watcher.addListener(new FileChangeListener() { @Override public void onChange(Set changeSet) {