james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r451989 - in /james/server/trunk/src: java/org/apache/james/core/AbstractJamesHandler.java test/org/apache/james/services/AbstractDNSServer.java test/org/apache/james/smtpserver/SMTPServerTest.java
Date Mon, 02 Oct 2006 11:52:37 GMT
Author: norman
Date: Mon Oct  2 04:52:37 2006
New Revision: 451989

URL: http://svn.apache.org/viewvc?view=rev&rev=451989
Log:
Fix Tests

Modified:
    james/server/trunk/src/java/org/apache/james/core/AbstractJamesHandler.java
    james/server/trunk/src/test/org/apache/james/services/AbstractDNSServer.java
    james/server/trunk/src/test/org/apache/james/smtpserver/SMTPServerTest.java

Modified: james/server/trunk/src/java/org/apache/james/core/AbstractJamesHandler.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/core/AbstractJamesHandler.java?view=diff&rev=451989&r1=451988&r2=451989
==============================================================================
--- james/server/trunk/src/java/org/apache/james/core/AbstractJamesHandler.java (original)
+++ james/server/trunk/src/java/org/apache/james/core/AbstractJamesHandler.java Mon Oct  2
04:52:37 2006
@@ -134,11 +134,8 @@
     protected void initHandler( Socket connection ) throws IOException {
         this.socket = connection;
         remoteIP = socket.getInetAddress().getHostAddress();
-        try {
-            remoteHost = dnsServer.getHostName(socket.getInetAddress());
-        } catch (UnknownHostException e) {
-            remoteHost = "unknown";
-        }
+        remoteHost = dnsServer.getHostName(socket.getInetAddress());
+
         try {
             synchronized (this) {
                 handlerThread = Thread.currentThread();

Modified: james/server/trunk/src/test/org/apache/james/services/AbstractDNSServer.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/test/org/apache/james/services/AbstractDNSServer.java?view=diff&rev=451989&r1=451988&r2=451989
==============================================================================
--- james/server/trunk/src/test/org/apache/james/services/AbstractDNSServer.java (original)
+++ james/server/trunk/src/test/org/apache/james/services/AbstractDNSServer.java Mon Oct 
2 04:52:37 2006
@@ -69,7 +69,7 @@
     /**
      * @see org.apache.james.services.DNSServer#getHostName(java.net.InetAddress)
      */
-    public String getHostName(InetAddress addr) throws UnknownHostException {
+    public String getHostName(InetAddress addr) {
         throw new UnsupportedOperationException("Unimplemented Stub Method");
     }
 

Modified: james/server/trunk/src/test/org/apache/james/smtpserver/SMTPServerTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/test/org/apache/james/smtpserver/SMTPServerTest.java?view=diff&rev=451989&r1=451988&r2=451989
==============================================================================
--- james/server/trunk/src/test/org/apache/james/smtpserver/SMTPServerTest.java (original)
+++ james/server/trunk/src/test/org/apache/james/smtpserver/SMTPServerTest.java Mon Oct  2
04:52:37 2006
@@ -139,7 +139,7 @@
             this.localhostByName = localhostByName;
         }
 
-        public String getHostName(InetAddress addr) throws UnknownHostException {
+        public String getHostName(InetAddress addr) {
             return addr.getHostName();
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message