You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/12/05 15:04:40 UTC
[commons-vfs] 01/03: Workaround the fact that these tests were
initially written in JUnit 3 (THREE) and fail to run properly within
Eclipse today and for quite a while now actually.
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 e85cbecb9d1a700e7b2c206f84f5ac32e609e1a1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Dec 5 09:58:44 2020 -0500
Workaround the fact that these tests were initially written in JUnit 3
(THREE) and fail to run properly within Eclipse today and for quite a
while now actually.
---
.../java/org/apache/commons/vfs2/test/AbstractProviderTestCase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractProviderTestCase.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractProviderTestCase.java
index 5a0923e..905f894 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractProviderTestCase.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractProviderTestCase.java
@@ -207,7 +207,7 @@ public abstract class AbstractProviderTestCase extends AbstractVfsTestCase {
super.runTest();
}
- if (((AbstractFileSystem) readFolder.getFileSystem()).isOpen()) {
+ if (readFolder != null && ((AbstractFileSystem) readFolder.getFileSystem()).isOpen()) {
String name = "unknown";
if (method != null) {
name = method.getName();