#553 - Adapt Spring Data Cassandra.
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package example.springdata.cassandra.people;
|
||||
|
||||
import static com.datastax.driver.core.querybuilder.QueryBuilder.*;
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
|
||||
import example.springdata.cassandra.util.CassandraKeyspace;
|
||||
@@ -87,7 +86,7 @@ public class ReactiveCassandraTemplateIntegrationTest {
|
||||
@Test
|
||||
public void convertReactorTypesToRxJava1() throws Exception {
|
||||
|
||||
Flux<Person> flux = template.select(select().from("person").where(eq("lastname", "White")), Person.class);
|
||||
Flux<Person> flux = template.select("SELECT * FROM person WHERE lastname = 'White'", Person.class);
|
||||
|
||||
long count = RxReactiveStreams.toObservable(flux) //
|
||||
.count() //
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
spring.data.cassandra.keyspace-name=example
|
||||
spring.data.cassandra.schema-action=recreate
|
||||
spring.data.cassandra.local-datacenter=datacenter1
|
||||
logging.level.org.springframework.data.cassandra=INFO
|
||||
|
||||
|
||||
Reference in New Issue
Block a user