This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
commit 3655a83ab469d66d9b71fee85d30ccd6e43c9a90 Author: Gary Gregory <[email protected]> AuthorDate: Fri Nov 26 09:40:41 2021 -0500 Sort. --- .../org/apache/commons/vfs2/impl/DefaultFileMonitorTest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileMonitorTest.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileMonitorTest.java index ac9467b..404994e 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileMonitorTest.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileMonitorTest.java @@ -42,8 +42,8 @@ import org.junit.Test; public class DefaultFileMonitorTest { private static class CountingListener implements FileListener { - private final AtomicLong created = new AtomicLong(); private final AtomicLong changed = new AtomicLong(); + private final AtomicLong created = new AtomicLong(); private final AtomicLong deleted = new AtomicLong(); @Override @@ -63,10 +63,11 @@ public class DefaultFileMonitorTest { } private enum Status { - CHANGED, DELETED, CREATED + CHANGED, CREATED, DELETED } private class TestFileListener implements FileListener { + @Override public void fileChanged(final FileChangeEvent event) throws Exception { status = Status.CHANGED; @@ -87,10 +88,10 @@ public class DefaultFileMonitorTest { private FileSystemManager fileSystemManager; - private File testDir; - private volatile Status status; + private File testDir; + private File testFile; private void deleteTestFileIfPresent() {
