public final class CassandraTestInstance extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Clean embedded Casandra and throw out keyspaces.
|
static CassandraTestInstance |
getInstance(String keyspaceSchemaCql,
String keyspace)
Thread safe singleton of Cassandra test instance with initialized keyspace.
|
static com.datastax.driver.core.Session |
getSession(String keyspace) |
static void |
print()
Print how many data is in each table.
|
static void |
truncateAllData(boolean hard)
Truncate all tables from all keyspaces.
|
public static CassandraTestInstance getInstance(String keyspaceSchemaCql, String keyspace)
keyspaceSchemaCql - cql file of keyspace definitionkeyspace - keyspace namepublic static void truncateAllData(boolean hard)
hard - if is true then empty tables are truncated (this slow down process because it require disk flushes)public static com.datastax.driver.core.Session getSession(String keyspace)
public static void print()
public void clean()
Copyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.