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
The following commit(s) were added to refs/heads/master by this push:
new 17a0cf4 Better assertions to help in debugging.
17a0cf4 is described below
commit 17a0cf4019e90ccffa0e170526274d176dbad7ac
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Oct 5 19:31:11 2019 -0400
Better assertions to help in debugging.
---
.../java/org/apache/commons/vfs2/cache/LRUFilesCacheTests.java | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/LRUFilesCacheTests.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/LRUFilesCacheTests.java
index bf8b820..6fe761b 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/LRUFilesCacheTests.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/LRUFilesCacheTests.java
@@ -16,7 +16,11 @@
*/
package org.apache.commons.vfs2.cache;
+import java.util.Objects;
+
import org.apache.commons.vfs2.FileObject;
+import org.apache.commons.vfs2.FilesCache;
+import org.apache.commons.vfs2.impl.DefaultFileSystemManager;
import org.junit.Assert;
/**
@@ -68,6 +72,10 @@ public class LRUFilesCacheTests extends
AbstractFilesCacheTestsBase {
}
public void testClass() {
- assertTrue(getManager().getFilesCache() instanceof LRUFilesCache);
+ @SuppressWarnings("resource")
+ final DefaultFileSystemManager manager = getManager();
+ Assert.assertNotNull("manager", manager);
+ final FilesCache filesCache = manager.getFilesCache();
+ assertTrue(Objects.toString(filesCache), filesCache instanceof
LRUFilesCache);
}
}