* FYI: Removed InetAddress tests
@ 2006-09-08 8:58 Gary Benson
0 siblings, 0 replies; only message in thread
From: Gary Benson @ 2006-09-08 8:58 UTC (permalink / raw)
To: mauve-patches
[-- Attachment #1: Type: text/plain, Size: 171 bytes --]
Hi all,
This commit removes some tests that check functionality that no class
library except Classpath implements (and that only for a few more
minutes...)
Cheers,
Gary
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 2549 bytes --]
Index: ChangeLog
===================================================================
RCS file: /cvs/mauve/mauve/ChangeLog,v
retrieving revision 1.1908
diff -u -r1.1908 ChangeLog
--- ChangeLog 7 Sep 2006 09:23:13 -0000 1.1908
+++ ChangeLog 8 Sep 2006 08:53:18 -0000
@@ -1,3 +1,8 @@
+2006-09-08 Gary Benson <gbenson@redhat.com>
+
+ * gnu/testlet/java/net/InetAddress/getAllByName.java: Do not test
+ for whitespace-stripping of hostnames.
+
2006-09-07 David Gilbert <david.gilbert@object-refinery.com>
* gnu/testlet/javax/swing/plaf/metal/MetalScrollBarUI/constructor.java
Index: gnu/testlet/java/net/InetAddress/getAllByName.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/net/InetAddress/getAllByName.java,v
retrieving revision 1.2
diff -u -r1.2 getAllByName.java
--- gnu/testlet/java/net/InetAddress/getAllByName.java 2 Jan 2006 14:02:58 -0000 1.2
+++ gnu/testlet/java/net/InetAddress/getAllByName.java 8 Sep 2006 08:53:18 -0000
@@ -43,7 +43,7 @@
harness.fail(x.toString());
}
- // getAllByName("") also should return the loopback address
+ // so should getAllByName("")
try
{
InetAddress[] addr = InetAddress.getAllByName("");
@@ -56,47 +56,5 @@
{
harness.fail(x.toString());
}
-
- // so should getAllByName(" ")
- try
- {
- InetAddress[] addr = InetAddress.getAllByName(" ");
- harness.check(addr != null);
- InetAddress loopback = addr[0];
- harness.check(loopback != null);
- harness.check(loopback.isLoopbackAddress());
- }
- catch (UnknownHostException x)
- {
- harness.fail(x.toString());
- }
-
- // so should getAllByName("localhost")
- try
- {
- InetAddress[] addr = InetAddress.getAllByName("localhost");
- harness.check(addr != null);
- InetAddress loopback = addr[0];
- harness.check(loopback != null);
- harness.check(loopback.isLoopbackAddress());
- }
- catch (UnknownHostException x)
- {
- harness.fail(x.toString());
- }
-
- // so should getAllByName(" localhost ")
- try
- {
- InetAddress[] addr = InetAddress.getAllByName(" localhost ");
- harness.check(addr != null);
- InetAddress loopback = addr[0];
- harness.check(loopback != null);
- harness.check(loopback.isLoopbackAddress());
- }
- catch (UnknownHostException x)
- {
- harness.fail(x.toString());
- }
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-08 8:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-08 8:58 FYI: Removed InetAddress tests Gary Benson
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).