Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored and snicoll committed Jun 29, 2015
1 parent 46fbca6 commit df33830
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void addNestedFile() throws Exception {
}

@Test
public void waitsForIdleTime() throws Exception {
public void waitsForPollingInterval() throws Exception {
this.changes.clear();
setupWatcher(100, 1);
File folder = startWithNewFolder();
Expand All @@ -148,7 +148,7 @@ public void waitsForIdleTime() throws Exception {
}

@Test
public void waitsForQuietTime() throws Exception {
public void waitsForQuietPeriod() throws Exception {
setupWatcher(300, 200);
File folder = startWithNewFolder();
for (int i = 0; i < 10; i++) {
Expand Down Expand Up @@ -266,8 +266,8 @@ public boolean accept(File file) {
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<ChangedFiles> changeSet) {
Expand Down

0 comments on commit df33830

Please sign in to comment.