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 2a33298 Add JUnit assertions.
2a33298 is described below
commit 2a332980fc22f8fbc5b8a874f0a7576f9f8af56b
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jan 30 16:30:46 2019 -0500
Add JUnit assertions.
---
.../apache/commons/vfs2/test/AbstractProviderTestCase.java | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
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 6c6bfe4..589e871 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
@@ -23,9 +23,6 @@ import java.lang.reflect.Method;
import java.net.URLConnection;
import java.util.Arrays;
-import junit.framework.Test;
-import junit.framework.TestCase;
-
import org.apache.commons.AbstractVfsTestCase;
import org.apache.commons.vfs2.Capability;
import org.apache.commons.vfs2.FileContent;
@@ -37,6 +34,10 @@ import org.apache.commons.vfs2.FileType;
import org.apache.commons.vfs2.impl.DefaultFileSystemManager;
import org.apache.commons.vfs2.provider.AbstractFileSystem;
import org.apache.commons.vfs2.provider.local.DefaultLocalFileProvider;
+import org.junit.Assert;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
/**
* File system test cases, which verifies the structure and naming
functionality.
@@ -113,7 +114,9 @@ public abstract class AbstractProviderTestCase extends
AbstractVfsTestCase {
}
protected FileSystem getFileSystem() {
- return getReadFolder().getFileSystem();
+ FileObject rFolder = getReadFolder();
+ Assert.assertNotNull("This test's read folder should not be null",
rFolder);
+ return rFolder.getFileSystem();
}
/**