Add two tests.
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 @@
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 @@
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:///");
+ }
}