config class working w/minimal surface test
This commit is contained in:
@@ -9,13 +9,11 @@ import com.datastax.driver.core.Cluster.Builder;
|
||||
@Configuration
|
||||
public class Config extends AbstractCassandraConfiguration {
|
||||
|
||||
public static final String KEYSPACE = "testy";
|
||||
|
||||
public Cluster cluster;
|
||||
|
||||
@Override
|
||||
protected String getKeyspaceName() {
|
||||
return KEYSPACE;
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -32,5 +32,9 @@ public class ConfigTest {
|
||||
@Test
|
||||
public void test() {
|
||||
assertNotNull(session);
|
||||
|
||||
session
|
||||
.execute("CREATE KEYSPACE testy WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };");
|
||||
session.execute("USE testy");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user