Cassandra-unit 2.0X works awesomely, if you are willing to spend the slightly few more cycles, - Look at farsandra. :)
I copied Farsandra (since there was no release) into hecate. On 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 > > War is peace. Freedom is slavery. Ignorance is strength. Corporations are > people. >