This is the mail archive of the mauve-patches@sourceware.org mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: New URL test.


I just committed this:

? bis.d
? gc.diff
? ia.diff
? mauve-DAVE
? mauve-DAVEX
? mauve-libjava
? results.1
? results.2
? t
? url.d
Index: ChangeLog
===================================================================
RCS file: /cvs/mauve/mauve/ChangeLog,v
retrieving revision 1.1509
diff -u -p -r1.1509 ChangeLog
--- ChangeLog	28 Feb 2006 21:06:44 -0000	1.1509
+++ ChangeLog	28 Feb 2006 23:51:51 -0000
@@ -1,3 +1,7 @@
+2006-02-28  David Daney  <ddaney@avtrex.com>
+
+	* gnu/testlet/java/net/URL/URLTest.java (test_Basics): Added a test.
+
 2006-02-28  Olivier Jolly  <olivier.jolly@pcedev.com>
 
 	* gnu/testlet/java/lang/ClassLoader/Resources.java: New file.
Index: gnu/testlet/java/net/URL/URLTest.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/net/URL/URLTest.java,v
retrieving revision 1.17
diff -u -p -r1.17 URLTest.java
--- gnu/testlet/java/net/URL/URLTest.java	4 Dec 2005 20:46:05 -0000	1.17
+++ gnu/testlet/java/net/URL/URLTest.java	28 Feb 2006 23:51:51 -0000
@@ -179,6 +179,15 @@ public class URLTest implements Testlet
 		catch (NullPointerException e) {
 			harness.fail(" Error in test_Basics - null context");
 		}
+                harness.checkPoint("Colon in spec");
+                try {
+                    URL cxt = new URL("http://www.foo.bar.com";);
+                    URL url = new URL(cxt, "_urn:testing/");
+                    harness.check("http://www.foo.bar.com/_urn:testing/".equals(url.toString()));
+                }
+                catch (Exception e) {
+                    harness.fail(" Error in test_Basics - Colon in spec");
+                }
 	}
 
 	public void test_openConnection()

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]