How to tear down an EmbeddedCassandraService in unit tests?

2014-03-28 Thread Clint Kelly
All, I have a question about how to use the EmbeddedCassandraService in unit tests. I wrote a short collection of unit tests here: https://github.com/wibiclint/cassandra-java-driver-keyspaces I'm trying to start up a new EmbeddedCassandraService for each unit test. I looked at the Cassandra

Re: How to tear down an EmbeddedCassandraService in unit tests?

2014-03-28 Thread Andre Sprenger
We are using version 1.2.4 and it is difficult to shutdown the embedded version. But you don't have to. Just check in each test setup method if embedded Cassandra is already running and start it if necessary. Than create keyspaces/tables in setup methods and drop them in teardown methods. For us