You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ba...@apache.org on 2008/08/01 12:32:59 UTC
svn commit: r681644 -
/james/server/trunk/phoenix-deployment/src/test/org/apache/james/vut/AbstractVirtualUserTableTest.java
Author: bago
Date: Fri Aug 1 03:32:58 2008
New Revision: 681644
URL: http://svn.apache.org/viewvc?rev=681644&view=rev
Log:
Remove core-library dependency from vut test.
Modified:
james/server/trunk/phoenix-deployment/src/test/org/apache/james/vut/AbstractVirtualUserTableTest.java
Modified: james/server/trunk/phoenix-deployment/src/test/org/apache/james/vut/AbstractVirtualUserTableTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/phoenix-deployment/src/test/org/apache/james/vut/AbstractVirtualUserTableTest.java?rev=681644&r1=681643&r2=681644&view=diff
==============================================================================
--- james/server/trunk/phoenix-deployment/src/test/org/apache/james/vut/AbstractVirtualUserTableTest.java (original)
+++ james/server/trunk/phoenix-deployment/src/test/org/apache/james/vut/AbstractVirtualUserTableTest.java Fri Aug 1 03:32:58 2008
@@ -17,8 +17,6 @@
* under the License. *
****************************************************************/
-
-
package org.apache.james.vut;
import java.net.InetAddress;
@@ -30,7 +28,7 @@
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.avalon.framework.container.ContainerUtil;
import org.apache.avalon.framework.service.ServiceException;
-import org.apache.james.services.AbstractDNSServer;
+import org.apache.james.dnsserver.TemporaryResolutionException;
import org.apache.james.services.DNSServer;
import org.apache.james.services.VirtualUserTable;
@@ -95,7 +93,7 @@
protected DNSServer setUpDNSServer() {
- DNSServer dns = new AbstractDNSServer() {
+ DNSServer dns = new DNSServer() {
public String getHostName(InetAddress inet) {
return "test";
}
@@ -107,6 +105,25 @@
public InetAddress getLocalHost() throws UnknownHostException {
return InetAddress.getLocalHost();
}
+
+ public Collection findMXRecords(String hostname)
+ throws TemporaryResolutionException {
+ throw new UnsupportedOperationException("Should never be called");
+ }
+
+ public Collection findTXTRecords(String hostname) {
+ throw new UnsupportedOperationException("Should never be called");
+ }
+
+ public InetAddress getByName(String host)
+ throws UnknownHostException {
+ throw new UnsupportedOperationException("Should never be called");
+ }
+
+ public Iterator getSMTPHostAddresses(String domainName)
+ throws TemporaryResolutionException {
+ throw new UnsupportedOperationException("Should never be called");
+ }
};
return dns;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org