polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject polygene-java git commit: POLYGENE-172 Exercise MongoDB nodes configuration parsing in tests
Date Mon, 15 May 2017 16:50:46 GMT
Repository: polygene-java
Updated Branches:
  refs/heads/develop f425d27f1 -> a7de5980d


POLYGENE-172 Exercise MongoDB nodes configuration parsing in tests


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/a7de5980
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/a7de5980
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/a7de5980

Branch: refs/heads/develop
Commit: a7de5980d2d8c19b8f60df6cfd89009b9646e670
Parents: f425d27
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Mon May 15 18:45:09 2017 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Mon May 15 18:45:09 2017 +0200

----------------------------------------------------------------------
 .../entitystore/mongodb/EmbedMongoMapEntityStoreTest.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/a7de5980/extensions/entitystore-mongodb/src/test/java/org/apache/polygene/entitystore/mongodb/EmbedMongoMapEntityStoreTest.java
----------------------------------------------------------------------
diff --git a/extensions/entitystore-mongodb/src/test/java/org/apache/polygene/entitystore/mongodb/EmbedMongoMapEntityStoreTest.java
b/extensions/entitystore-mongodb/src/test/java/org/apache/polygene/entitystore/mongodb/EmbedMongoMapEntityStoreTest.java
index 699bcab..5a65389 100644
--- a/extensions/entitystore-mongodb/src/test/java/org/apache/polygene/entitystore/mongodb/EmbedMongoMapEntityStoreTest.java
+++ b/extensions/entitystore-mongodb/src/test/java/org/apache/polygene/entitystore/mongodb/EmbedMongoMapEntityStoreTest.java
@@ -24,6 +24,7 @@ import de.flapdoodle.embed.mongo.config.Net;
 import de.flapdoodle.embed.mongo.distribution.Version;
 import de.flapdoodle.embed.process.runtime.Network;
 import java.io.IOException;
+import java.util.Collections;
 import org.apache.polygene.api.common.Visibility;
 import org.apache.polygene.bootstrap.AssemblyException;
 import org.apache.polygene.bootstrap.ModuleAssembly;
@@ -82,7 +83,6 @@ public class EmbedMongoMapEntityStoreTest extends AbstractEntityStoreTest
         mongoConfig.writeConcern().set( MongoEntityStoreConfiguration.WriteConcern.MAJORITY
);
         mongoConfig.database().set( "polygene-test" );
         mongoConfig.collection().set( testName.getMethodName() );
-        mongoConfig.hostname().set( "localhost" );
-        mongoConfig.port().set( port );
+        mongoConfig.nodes().set( Collections.singletonList( "localhost:" + port ) );
     }
 }


Mime
View raw message