Take a look at cassandra-unit. https://github.com/savoirtech/hecate/blob/master/hecate-cql3/src/test/java/com/savoirtech/hecate/cql3/test/CassandraTestCase.java
On Wed, Jun 11, 2014 at 11:02 PM, Kevin Burton <bur...@spinn3r.com> wrote: > Maybe this is an anti-pattern.. please feel free to flame me if that's the > case ;) > > I'd like to embed cassandra in junit so that I can test my database code > from my laptop and also get it working in our integration. > > The general idea is to start with a clean slate, run cassandra, create > tables, simulate production load, then shutdown. > > This page: > > http://wiki.apache.org/cassandra/Embedding > > seems to hint that it's possible. > > of course.. there are some tests here that make it more complicated - like > quorum read. but for right now I'll settle for one replica. > > -- > > Founder/CEO Spinn3r.com > Location: *San Francisco, CA* > Skype: *burtonator* > blog: http://burtonator.wordpress.com > … or check out my Google+ profile > <https://plus.google.com/102718274791889610666/posts> > <http://spinn3r.com> > War is peace. Freedom is slavery. Ignorance is strength. Corporations are > people. > >