abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r519242 - /incubator/abdera/java/trunk/dependencies/g14n/src/test/java/org/apache/abdera/g14n/test/iri/TestIRI.java
Date Sat, 17 Mar 2007 05:23:12 GMT
Author: jmsnell
Date: Fri Mar 16 22:23:11 2007
New Revision: 519242

URL: http://svn.apache.org/viewvc?view=rev&rev=519242
Log:
adding a test case for file:/// urls

Modified:
    incubator/abdera/java/trunk/dependencies/g14n/src/test/java/org/apache/abdera/g14n/test/iri/TestIRI.java

Modified: incubator/abdera/java/trunk/dependencies/g14n/src/test/java/org/apache/abdera/g14n/test/iri/TestIRI.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/dependencies/g14n/src/test/java/org/apache/abdera/g14n/test/iri/TestIRI.java?view=diff&rev=519242&r1=519241&r2=519242
==============================================================================
--- incubator/abdera/java/trunk/dependencies/g14n/src/test/java/org/apache/abdera/g14n/test/iri/TestIRI.java
(original)
+++ incubator/abdera/java/trunk/dependencies/g14n/src/test/java/org/apache/abdera/g14n/test/iri/TestIRI.java
Fri Mar 16 22:23:11 2007
@@ -32,6 +32,11 @@
     assertEquals(iri.toString(),"http://validator.w3.org/check?uri=http%3A%2F%2Fr\u00E9sum\u00E9.example.org");
     assertEquals(iri.toURI().toString(),"http://validator.w3.org/check?uri=http%3A%2F%2Fr%C3%A9sum%C3%A9.example.org");
  
   }
+  
+  public static void testFile() throws Exception {
+    IRI iri = new IRI("file:///tmp/test/foo");
+    assertEquals(iri.toURI().toString(),"file:///tmp/test/foo");
+  }
 
   public static void testSimple2() throws Exception {
     IRI iri = new IRI("http://www.example.org/red%09ros\u00E9#red");



Mime
View raw message