Skip to content

Instantly share code, notes, and snippets.

@jsanda
Created October 17, 2012 14:10
Show Gist options
  • Save jsanda/3905705 to your computer and use it in GitHub Desktop.
Save jsanda/3905705 to your computer and use it in GitHub Desktop.
Automating cassandra cluster deployment for automated testing
@Listeners({CassandraClusterManager.class})
public class MyTest {
@BeforeClass
@DeployCluster(numNodes = 4) // installs, and starts 4 node cluster
public void initCluster() {
...
}
@AfterClass
@ShutdownCluster // shuts down all cluster nodes
public void cleanUp() {
}
@Test
public void testSomeStuff() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment