This is an automated email from the ASF dual-hosted git repository. rouazana pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 023aef4736fcd60f18d59dbb9d483e6af076c4c7 Author: Rémi Kowalski <[email protected]> AuthorDate: Mon May 6 13:42:00 2019 +0200 fixup! JAMES-2754 add smtp host system injection --- mpt/impl/imap-mailbox/external-james/pom.xml | 1 + .../james/host/ExternalJamesConfigurationEnvironnementVariables.java | 2 +- .../imapmailbox/external/james/host/ExternalJamesSmtpHostSystem.java | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mpt/impl/imap-mailbox/external-james/pom.xml b/mpt/impl/imap-mailbox/external-james/pom.xml index 10ebda1..5663268 100644 --- a/mpt/impl/imap-mailbox/external-james/pom.xml +++ b/mpt/impl/imap-mailbox/external-james/pom.xml @@ -42,6 +42,7 @@ <dependency> <groupId>${james.groupId}</groupId> <artifactId>james-server-testing</artifactId> + <scope>test</scope> </dependency> <dependency> <groupId>${james.groupId}</groupId> diff --git a/mpt/impl/imap-mailbox/external-james/src/test/java/org/apache/james/mpt/imapmailbox/external/james/host/ExternalJamesConfigurationEnvironnementVariables.java b/mpt/impl/imap-mailbox/external-james/src/test/java/org/apache/james/mpt/imapmailbox/external/james/host/ExternalJamesConfigurationEnvironnementVariables.java index 20f3b14..799746d 100644 --- a/mpt/impl/imap-mailbox/external-james/src/test/java/org/apache/james/mpt/imapmailbox/external/james/host/ExternalJamesConfigurationEnvironnementVariables.java +++ b/mpt/impl/imap-mailbox/external-james/src/test/java/org/apache/james/mpt/imapmailbox/external/james/host/ExternalJamesConfigurationEnvironnementVariables.java @@ -35,7 +35,7 @@ public class ExternalJamesConfigurationEnvironnementVariables implements Externa public ExternalJamesConfigurationEnvironnementVariables() { Preconditions.checkState(System.getenv(ENV_JAMES_ADDRESS) != null, "You must have exported an environment variable called JAMES_ADDRESS in order to run these tests. For instance export JAMES_ADDRESS=127.0.0.1"); Preconditions.checkState(System.getenv(ENV_JAMES_IMAP_PORT) != null, "You must have exported an environment variable called JAMES_IMAP_PORT in order to run these tests. For instance export JAMES_IMAP_PORT=143"); - Preconditions.checkState(System.getenv(ENV_JAMES_SMTP_PORT) != null, "You must have exported an environment variable called JAMES_SMTP_PORT in order to run these tests. For instance export JAMES_IMAP_PORT=143"); + Preconditions.checkState(System.getenv(ENV_JAMES_SMTP_PORT) != null, "You must have exported an environment variable called JAMES_SMTP_PORT in order to run these tests. For instance export JAMES_IMAP_PORT=587"); this.address = System.getenv(ENV_JAMES_ADDRESS); this.imapPort = Port.of(Integer.parseInt(System.getenv(ENV_JAMES_IMAP_PORT))); this.smtpPort = Port.of(Integer.parseInt(System.getenv(ENV_JAMES_SMTP_PORT))); diff --git a/mpt/impl/imap-mailbox/external-james/src/test/java/org/apache/james/mpt/imapmailbox/external/james/host/ExternalJamesSmtpHostSystem.java b/mpt/impl/imap-mailbox/external-james/src/test/java/org/apache/james/mpt/imapmailbox/external/james/host/ExternalJamesSmtpHostSystem.java index d4fdda5..8e6aee0 100644 --- a/mpt/impl/imap-mailbox/external-james/src/test/java/org/apache/james/mpt/imapmailbox/external/james/host/ExternalJamesSmtpHostSystem.java +++ b/mpt/impl/imap-mailbox/external-james/src/test/java/org/apache/james/mpt/imapmailbox/external/james/host/ExternalJamesSmtpHostSystem.java @@ -35,6 +35,7 @@ public class ExternalJamesSmtpHostSystem implements SmtpHostSystem{ this.configuration = externalConfiguration; } + @Override public SMTPMessageSender connect(SMTPMessageSender smtpMessageSender) throws IOException { return smtpMessageSender.connect(configuration.getAddress(), configuration.getSmptPort()); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
