* New URLTest
@ 2006-12-07 21:44 Mark Wielaard
0 siblings, 0 replies; only message in thread
From: Mark Wielaard @ 2006-12-07 21:44 UTC (permalink / raw)
To: mauve-patches
[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]
Hi,
Roman found a bug in classpath URLStreamHandler handling while
writing/testing jgecko. This adds a test for this case.
2006-12-07 Mark Wielaard <mark@klomp.org>
* gnu/testlet/java/net/URL/URLTest.java: Add test for jar base with
full http spec.
Committed,
Mark
Index: gnu/testlet/java/net/URL/URLTest.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/net/URL/URLTest.java,v
retrieving revision 1.19
diff -u -r1.19 URLTest.java
--- gnu/testlet/java/net/URL/URLTest.java 27 Jul 2006 15:54:57 -0000 1.19
+++ gnu/testlet/java/net/URL/URLTest.java 7 Dec 2006 21:41:54 -0000
@@ -340,6 +340,17 @@
harness.check(false);
harness.debug(_);
}
+
+ harness.checkPoint("jar base with full http spec");
+ try {
+ URL base = new URL("jar:file:///test.jar!/foo/bar.txt");
+ URL other = new URL(base, "http://planet.classpath.org/");
+ harness.check(other.toString(),
+ "http://planet.classpath.org/");
+ } catch (IOException _) {
+ harness.check(false);
+ harness.debug(_);
+ }
}
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-07 21:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-07 21:44 New URLTest Mark Wielaard
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).