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 e67905c37f5b3257fcd4a7a2405cb129f2db9e9e
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Mar 27 11:11:19 2021 -0400

    Add two tests.
---
 .../vfs2/provider/url/UrlFileNameParserTest.java      | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/url/UrlFileNameParserTest.java
 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/url/UrlFileNameParserTest.java
index 6baadda..d99faf6 100644
--- 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/url/UrlFileNameParserTest.java
+++ 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/url/UrlFileNameParserTest.java
@@ -25,9 +25,7 @@ import org.junit.Test;
 
 public class UrlFileNameParserTest {
 
-    @Test
-    public void testJira739() throws Exception {
-        final String uriStr = "maprfs:///";
+    private void testJira739(final String uriStr) throws Exception {
         // Check that we have a valid URI
         final URI uri = new URI(uriStr);
         // VFS-739 shows that parseUri throws an NPE:
@@ -35,4 +33,19 @@ public class UrlFileNameParserTest {
         Assert.assertEquals(uriStr, fileName.getURI());
         Assert.assertEquals(uri.getScheme(), fileName.getScheme());
     }
+
+    @Test
+    public void testJira739_scheme_file() throws Exception {
+        testJira739("file:///");
+    }
+
+    @Test
+    public void testJira739_scheme_maprfs() throws Exception {
+        testJira739("maprfs:///");
+    }
+
+    @Test
+    public void testJira739_scheme_ram() throws Exception {
+        testJira739("ram:///");
+    }
 }

Reply via email to