* Patch: FYI: test case for PR 28486
@ 2006-07-27 15:53 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2006-07-27 15:53 UTC (permalink / raw)
To: mauve-patches
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 " +
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-07-27 15:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-27 15:53 Patch: FYI: test case for PR 28486 Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).