james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rouaz...@apache.org
Subject [10/11] james-project git commit: JAMES-1862 Add port in SmtpHostSystem
Date Tue, 06 Dec 2016 09:02:55 GMT
JAMES-1862 Add port in SmtpHostSystem


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/27e138a8
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/27e138a8
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/27e138a8

Branch: refs/heads/master
Commit: 27e138a81a9fcdb7629e5ec49e06672246df3509
Parents: c704a92
Author: Antoine Duprat <aduprat@apache.org>
Authored: Thu Dec 1 12:44:14 2016 +0100
Committer: Antoine Duprat <aduprat@apache.org>
Committed: Tue Dec 6 09:56:34 2016 +0100

----------------------------------------------------------------------
 .../src/test/java/org/apache/james/mpt/smtp/SmtpTestModule.java  | 2 +-
 .../apache/james/mpt/smtp/host/CassandraJamesSmtpHostSystem.java | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/27e138a8/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/SmtpTestModule.java
----------------------------------------------------------------------
diff --git a/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/SmtpTestModule.java
b/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/SmtpTestModule.java
index 7e1d3fd..923c854 100644
--- a/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/SmtpTestModule.java
+++ b/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/SmtpTestModule.java
@@ -26,7 +26,7 @@ public class SmtpTestModule extends AbstractModule {
 
     @Override
     protected void configure() {
-        bind(SmtpHostSystem.class).to(CassandraJamesSmtpHostSystem.class);
+        bind(SmtpHostSystem.class).toInstance(new CassandraJamesSmtpHostSystem(1025));
     }
 
 }

http://git-wip-us.apache.org/repos/asf/james-project/blob/27e138a8/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/host/CassandraJamesSmtpHostSystem.java
----------------------------------------------------------------------
diff --git a/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/host/CassandraJamesSmtpHostSystem.java
b/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/host/CassandraJamesSmtpHostSystem.java
index bc8f678..f90bca9 100644
--- a/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/host/CassandraJamesSmtpHostSystem.java
+++ b/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/host/CassandraJamesSmtpHostSystem.java
@@ -46,8 +46,8 @@ public class CassandraJamesSmtpHostSystem extends ExternalSessionFactory
impleme
     private InMemoryDNSService inMemoryDNSService;
 
 
-    public CassandraJamesSmtpHostSystem() {
-        super("localhost", 1025, new SystemLoggingMonitor(), "220 mydomain.tld smtp");
+    public CassandraJamesSmtpHostSystem(int smtpPort) {
+        super("localhost", smtpPort, new SystemLoggingMonitor(), "220 mydomain.tld smtp");
     }
 
     @Override


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