james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adup...@apache.org
Subject [1/4] james-project git commit: JAMES-1927 Make LdapContainer is ExternalResource then inject later
Date Thu, 09 Feb 2017 10:39:30 GMT
Repository: james-project
Updated Branches:
  refs/heads/master 11b9eeeff -> 8ee5d08a9


JAMES-1927 Make LdapContainer is ExternalResource then inject later


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

Branch: refs/heads/master
Commit: abf48668960ae30793a4b534b4d32c84af45da18
Parents: 11b9eee
Author: Quynh Nguyen <qnguyen@linagora.com>
Authored: Wed Feb 8 13:56:49 2017 +0700
Committer: Quynh Nguyen <qnguyen@linagora.com>
Committed: Thu Feb 9 15:18:43 2017 +0700

----------------------------------------------------------------------
 .../java/org/apache/james/user/ldap/LdapGenericContainer.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/abf48668/server/data/data-ldap-integration-testing/src/test/java/org/apache/james/user/ldap/LdapGenericContainer.java
----------------------------------------------------------------------
diff --git a/server/data/data-ldap-integration-testing/src/test/java/org/apache/james/user/ldap/LdapGenericContainer.java
b/server/data/data-ldap-integration-testing/src/test/java/org/apache/james/user/ldap/LdapGenericContainer.java
index 89ef0b0..3344eaa 100644
--- a/server/data/data-ldap-integration-testing/src/test/java/org/apache/james/user/ldap/LdapGenericContainer.java
+++ b/server/data/data-ldap-integration-testing/src/test/java/org/apache/james/user/ldap/LdapGenericContainer.java
@@ -19,12 +19,13 @@
 package org.apache.james.user.ldap;
 
 import org.apache.james.util.streams.SwarmGenericContainer;
+import org.junit.rules.ExternalResource;
 import org.testcontainers.images.builder.ImageFromDockerfile;
 
 import com.google.common.base.Preconditions;
 import com.google.common.base.Strings;
 
-public class LdapGenericContainer {
+public class LdapGenericContainer extends ExternalResource {
 
     public static final int DEFAULT_LDAP_PORT = 389;
 
@@ -85,7 +86,7 @@ public class LdapGenericContainer {
     public String getLdapHost() {
         return "ldap://" +
                 container.getContainerIpAddress() +
-                ":" + 
+                ":" +
                 container.getMappedPort(LdapGenericContainer.DEFAULT_LDAP_PORT);
     }
 }


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