You can make use of embedded Cassandra server. Both Hector and Pelops have 
classes that you can use in your own unit tests, the Pelops one is quite good.

Sent from my iPhone

On Apr 15, 2011, at 3:59, sam_ <amin_shar...@yahoo.com> wrote:

> Hello there,
> 
> To start the Cassandra server we can use the following command in command
> prompt:
> cassandra -f
> 
> I am wondering if it is possible to directly start the server inside a Java
> program using thrift API or a lower level class inside Cassandra
> implementation.
> 
> The purpose of this is to be able to run JUnit tests that need to start
> Cassandra server in SetUp(), without the need to create a process and run
> "cassandra" from command line.
> 
> Thanks,
> Sam 
> 
> --
> View this message in context: 
> http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Starting-the-Cassandra-server-from-Java-without-command-line-tp6273826p6273826.html
> Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
> Nabble.com.

Reply via email to