commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1102322 - /commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestAddress.java
Date Thu, 12 May 2011 14:17:57 GMT
Author: mturk
Date: Thu May 12 14:17:57 2011
New Revision: 1102322

URL: http://svn.apache.org/viewvc?rev=1102322&view=rev
Log:
Check for well known service

Modified:
    commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestAddress.java

Modified: commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestAddress.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestAddress.java?rev=1102322&r1=1102321&r2=1102322&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestAddress.java
(original)
+++ commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestAddress.java
Thu May 12 14:17:57 2011
@@ -54,10 +54,10 @@ public class TestAddress extends Assert
         throws IOException
     {
         // XXX: It works only for lowercase names.
-        //      Eg. "Http" will fail with EAGAIN.
+        //      Eg. "Discard" will fail with EAGAIN.
         //
-        Service s1 = new Service("http", "tcp");
-        assertEquals(s1.getPort(), 80);
+        Service s1 = new Service("discard", "tcp");
+        assertEquals(s1.getPort(), 9);
         assertNotNull(s1.getAliases());
         Service s2 = new Service(21);
         assertEquals(s2.getName(), "ftp");



Mime
View raw message