From 16b504051a46d95231405e124badb7f14a5961e2 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Wed, 23 Nov 2016 11:07:15 +0100 Subject: [PATCH] #223 - Skip Cassandra tests if Cassandra is not available locally. --- .../people/ReactivePersonRepositoryIntegrationTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cassandra/reactive/src/test/java/example/springdata/cassandra/people/ReactivePersonRepositoryIntegrationTest.java b/cassandra/reactive/src/test/java/example/springdata/cassandra/people/ReactivePersonRepositoryIntegrationTest.java index 91756ee0..6c149961 100644 --- a/cassandra/reactive/src/test/java/example/springdata/cassandra/people/ReactivePersonRepositoryIntegrationTest.java +++ b/cassandra/reactive/src/test/java/example/springdata/cassandra/people/ReactivePersonRepositoryIntegrationTest.java @@ -17,6 +17,7 @@ package example.springdata.cassandra.people; import static org.assertj.core.api.Assertions.*; +import example.springdata.cassandra.util.RequiresCassandraKeyspace; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -24,6 +25,7 @@ import java.util.List; import java.util.concurrent.CountDownLatch; import org.junit.Before; +import org.junit.ClassRule; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -39,6 +41,8 @@ import org.springframework.test.context.junit4.SpringRunner; @SpringBootTest public class ReactivePersonRepositoryIntegrationTest { + @ClassRule public final static RequiresCassandraKeyspace CASSANDRA_KEYSPACE = RequiresCassandraKeyspace.onLocalhost(); + @Autowired ReactivePersonRepository repository; /**