This is the mail archive of the
mauve-patches@sourceware.org
mailing list for the Mauve project.
Patch: FYI: test case for PR 28486
- From: Tom Tromey <tromey at redhat dot com>
- To: mauve-patches at sourceware dot org
- Date: Thu, 27 Jul 2006 11:47:27 -0400
- Subject: Patch: FYI: test case for PR 28486
- Reply-to: tromey at redhat dot com
I'm checking this in. This is a test case derived from PR 28486.
Tom
2006-07-27 Tom Tromey <tromey@redhat.com>
PR classpath/28486:
* gnu/testlet/java/net/URL/URLTest.java (test_Basics): Added 'equals'
test.
Index: gnu/testlet/java/net/URL/URLTest.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/net/URL/URLTest.java,v
retrieving revision 1.18
diff -u -r1.18 URLTest.java
--- gnu/testlet/java/net/URL/URLTest.java 28 Feb 2006 23:52:56 -0000 1.18
+++ gnu/testlet/java/net/URL/URLTest.java 27 Jul 2006 15:52:36 -0000
@@ -114,8 +114,11 @@
harness.check (url.getFile(), "/index.html");
harness.check (url.equals(new URL("http://sources.redhat.com/index.html")));
- URL url1 = new URL ( "http", "sources.redhat.com", 80, "index.html");
+ URL url1 = new URL ( "http", "sources.redhat.com", 80, "/index.html");
harness.check (url1.getPort(), 80);
+ harness.check(url.equals(url1));
+ harness.check(url1.toExternalForm(),
+ "http://sources.redhat.com:80/index.html");
}
catch ( MalformedURLException e ){
harness.fail(" Error in test_Basics - 16 " +