From df33830fb65fc6414c2f63434abde13ce9c48994 Mon Sep 17 00:00:00 2001 From: izeye Date: Mon, 29 Jun 2015 14:01:41 +0900 Subject: [PATCH] Polish Closes gh-3346 --- .../boot/devtools/filewatch/FileSystemWatcherTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) {