Skip to content

Instantly share code, notes, and snippets.

@janderson007
janderson007 / IntegrationKeyspace.groovy
Last active May 5, 2017 12:53
Initialize keyspace before tests, and destroy afterwards
import com.datastax.driver.core.Session
import groovy.time.TimeCategory
import groovy.util.logging.Slf4j
import org.junit.rules.ExternalResource
@Slf4j
class IntegrationKeyspace extends ExternalResource implements Closeable {
static class KeyspaceConfig {
Boolean autoCreate = false

Keybase proof

I hereby claim:

  • I am janderson007 on github.
  • I am janderson007 (https://keybase.io/janderson007) on keybase.
  • I have a public key ASD6INmMYIPfkzMMkQ_a60Jci0Fjg3CSr3FpmTD9tJl4dAo

To claim this, I am signing this object: