polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [2/7] polygene-java git commit: Added missing ClassRule for docker in Cassandra tests.
Date Mon, 27 Feb 2017 13:05:26 GMT
Added missing ClassRule for docker in Cassandra 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/36cef00a
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/36cef00a
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/36cef00a

Branch: refs/heads/serialization-3.0
Commit: 36cef00a2fce72e657c19ec1dd6f8bd7bce226ae
Parents: fba4bdf
Author: niclas <niclas@spicter.com>
Authored: Mon Feb 27 07:08:04 2017 +0800
Committer: niclas <niclas@spicter.com>
Committed: Mon Feb 27 07:08:04 2017 +0800

----------------------------------------------------------------------
 .../cassandra/CassandraMapEntityStoreTest.java            | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/36cef00a/extensions/entitystore-cassandra/src/test/java/org/apache/polygene/entitystore/cassandra/CassandraMapEntityStoreTest.java
----------------------------------------------------------------------
diff --git a/extensions/entitystore-cassandra/src/test/java/org/apache/polygene/entitystore/cassandra/CassandraMapEntityStoreTest.java
b/extensions/entitystore-cassandra/src/test/java/org/apache/polygene/entitystore/cassandra/CassandraMapEntityStoreTest.java
index 0ece039..3ff8e85 100644
--- a/extensions/entitystore-cassandra/src/test/java/org/apache/polygene/entitystore/cassandra/CassandraMapEntityStoreTest.java
+++ b/extensions/entitystore-cassandra/src/test/java/org/apache/polygene/entitystore/cassandra/CassandraMapEntityStoreTest.java
@@ -21,6 +21,7 @@ package org.apache.polygene.entitystore.cassandra;
 
 import org.apache.polygene.entitystore.cassandra.assembly.CassandraDBEntityStoreAssembler;
 import org.apache.polygene.test.entity.CanRemoveAll;
+import org.apache.polygene.test.internal.DockerRule;
 import org.apache.polygene.valueserialization.jackson.JacksonValueSerializationAssembler;
 import org.junit.BeforeClass;
 import org.apache.polygene.api.common.Visibility;
@@ -28,6 +29,7 @@ import org.apache.polygene.bootstrap.AssemblyException;
 import org.apache.polygene.bootstrap.ModuleAssembly;
 import org.apache.polygene.test.EntityTestAssembler;
 import org.apache.polygene.test.entity.AbstractEntityStoreTest;
+import org.junit.ClassRule;
 
 import static org.apache.polygene.test.util.Assume.assumeConnectivity;
 
@@ -38,12 +40,8 @@ import static org.apache.polygene.test.util.Assume.assumeConnectivity;
 public class CassandraMapEntityStoreTest
     extends AbstractEntityStoreTest
 {
-
-    @BeforeClass
-    public static void beforeCassandraEntityStoreTests()
-    {
-        assumeConnectivity( "localhost", 9042 );
-    }
+    @ClassRule
+    public static final DockerRule DOCKER = new DockerRule( "cassandra", 9042 );
 
     @Override
     // START SNIPPET: assembly


Mime
View raw message