1 package com.thinkaurelius.titan.diskstorage.cassandra.embedded;
3 import static org.junit.Assert.assertTrue;
5 import com.thinkaurelius.titan.diskstorage.BackendException;
6 import com.thinkaurelius.titan.diskstorage.configuration.Configuration;
7 import com.thinkaurelius.titan.diskstorage.configuration.ModifiableConfiguration;
8 import org.junit.BeforeClass;
10 import org.junit.experimental.categories.Category;
12 import com.thinkaurelius.titan.CassandraStorageSetup;
13 import com.thinkaurelius.titan.diskstorage.cassandra.AbstractCassandraStoreTest;
14 import com.thinkaurelius.titan.diskstorage.cassandra.AbstractCassandraStoreManager;
15 import com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures;
16 import com.thinkaurelius.titan.testcategory.OrderedKeyStoreTests;
18 public class EmbeddedStoreTest extends AbstractCassandraStoreTest {
21 public static void startCassandra() {
22 CassandraStorageSetup.startCleanEmbedded();
26 public ModifiableConfiguration getBaseStorageConfiguration() {
27 return CassandraStorageSetup.getEmbeddedConfiguration(getClass().getSimpleName());
31 public AbstractCassandraStoreManager openStorageManager(Configuration c) throws BackendException {
32 return new CassandraEmbeddedStoreManager(c);
36 @Category({ OrderedKeyStoreTests.class })
37 public void testConfiguration() {
38 StoreFeatures features = manager.getFeatures();
39 assertTrue(features.isKeyOrdered());
40 assertTrue(features.hasLocalKeyPartition());