Created
October 17, 2012 14:10
-
-
Save jsanda/3905705 to your computer and use it in GitHub Desktop.
Automating cassandra cluster deployment for automated testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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