Package com.thinkaurelius.titan.pkgtest

Source Code of com.thinkaurelius.titan.pkgtest.CassandraThriftESAssemblyIT

package com.thinkaurelius.titan.pkgtest;

import com.thinkaurelius.titan.diskstorage.cassandra.CassandraProcessStarter;
import org.apache.commons.configuration.BaseConfiguration;
import org.apache.commons.configuration.Configuration;
import org.junit.After;
import org.junit.BeforeClass;
import org.junit.Test;
import java.io.File;
import com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftStoreManager;

public class CassandraThriftESAssemblyIT extends AssemblyITSupport {

    @BeforeClass
    public static void startCassandra() {
        String cassyaml = BUILD_DIR + File.separator + "cassandra" + File.separator + "conf" +
                File.separator + "localhost-rp" + File.separator + "cassandra.yaml";
        CassandraProcessStarter.startCleanEmbedded("file://" + cassyaml);
    }
   
    @After
    public void clearData() throws Exception {
        Configuration c = new BaseConfiguration();
        c.setProperty("hostname", "127.0.0.1");
        CassandraThriftStoreManager m = new CassandraThriftStoreManager(c);
        m.clearStorage();
    }

    @Test
    public void testCassandraGettingStarted() throws Exception {
        testGettingStartedGremlinSession("conf/titan-cassandra-es.properties", "cassandrathrift");
    }
}
TOP

Related Classes of com.thinkaurelius.titan.pkgtest.CassandraThriftESAssemblyIT

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.