Skip to content

Commit 16b5040

Browse files
committed
spring-projects#223 - Skip Cassandra tests if Cassandra is not available locally.
1 parent f3f8f79 commit 16b5040

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cassandra/reactive/src/test/java/example/springdata/cassandra/people/ReactivePersonRepositoryIntegrationTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717

1818
import static org.assertj.core.api.Assertions.*;
1919

20+
import example.springdata.cassandra.util.RequiresCassandraKeyspace;
2021
import reactor.core.publisher.Flux;
2122
import reactor.core.publisher.Mono;
2223

2324
import java.util.List;
2425
import java.util.concurrent.CountDownLatch;
2526

2627
import org.junit.Before;
28+
import org.junit.ClassRule;
2729
import org.junit.Test;
2830
import org.junit.runner.RunWith;
2931
import org.springframework.beans.factory.annotation.Autowired;
@@ -39,6 +41,8 @@
3941
@SpringBootTest
4042
public class ReactivePersonRepositoryIntegrationTest {
4143

44+
@ClassRule public final static RequiresCassandraKeyspace CASSANDRA_KEYSPACE = RequiresCassandraKeyspace.onLocalhost();
45+
4246
@Autowired ReactivePersonRepository repository;
4347

4448
/**

0 commit comments

Comments
 (0)