james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r413146 - /james/server/trunk/src/test/org/apache/james/transport/matchers/AbstractRemoteAddrInNetworkTest.java
Date Fri, 09 Jun 2006 20:02:29 GMT
Author: norman
Date: Fri Jun  9 13:02:29 2006
New Revision: 413146

URL: http://svn.apache.org/viewvc?rev=413146&view=rev
Log:
Replace the null returns with throwing exceptions.. forget this before :-/

Modified:
    james/server/trunk/src/test/org/apache/james/transport/matchers/AbstractRemoteAddrInNetworkTest.java

Modified: james/server/trunk/src/test/org/apache/james/transport/matchers/AbstractRemoteAddrInNetworkTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/test/org/apache/james/transport/matchers/AbstractRemoteAddrInNetworkTest.java?rev=413146&r1=413145&r2=413146&view=diff
==============================================================================
--- james/server/trunk/src/test/org/apache/james/transport/matchers/AbstractRemoteAddrInNetworkTest.java
(original)
+++ james/server/trunk/src/test/org/apache/james/transport/matchers/AbstractRemoteAddrInNetworkTest.java
Fri Jun  9 13:02:29 2006
@@ -190,29 +190,28 @@
         dnsServer = new DNSServer() {
 
             public Collection findMXRecords(String hostname) {
-                // TODO Auto-generated method stub
-                return null;
+                throw new UnsupportedOperationException(
+                        "Unimplemented mock service");
             }
 
             public Collection findTXTRecords(String hostname) {
-                // TODO Auto-generated method stub
-                return null;
+                throw new UnsupportedOperationException(
+                        "Unimplemented mock service");
             }
 
             public Iterator getSMTPHostAddresses(String domainName) {
-                // TODO Auto-generated method stub
-                return null;
+                throw new UnsupportedOperationException(
+                        "Unimplemented mock service");
             }
 
             public InetAddress[] getAllByName(String host)
                     throws UnknownHostException {
-                // TODO Auto-generated method stub
-                return null;
+                throw new UnsupportedOperationException(
+                        "Unimplemented mock service");
             }
 
             public InetAddress getByName(String host)
                     throws UnknownHostException {
-                // TODO Auto-generated method stub
                 return InetAddress.getByName(host);
             }
 



---------------------------------------------------------------------
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