jsevellec / cassandra-unit

Utility tool to load Data into Cassandra to help you writing good isolated JUnit Test into your application
GNU Lesser General Public License v3.0
424 stars 1 forks source link

Help using Spring Data Cassandra @SASI #288

Open jmccaull opened 5 years ago

jmccaull commented 5 years ago

I'm doing some testing with Spring data Cassandra and Cassandra unit. I'm setting up Embedded Cassandra with all of the defaults, except the port. I've tried adding the secondary index both through the CassandraAdminTemplate as an execute call and using Springs' @SASI annotation but get the same runtime exception in both cases("com.datastax.driver.core.exceptions.ServerError: An unexpected error occurred server side on localhost/127.0.0.1:9042: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException"). I'm using 3.5.0.1 of cassandra unit/cassandra unit spring, spring data /cassandra 2.0.10.RELEASE. Is this supported? any ideas? Thanks