package com.hmsonline.virgil;
import org.junit.AfterClass;
import org.junit.BeforeClass;
//import com.hmsonline.cassandra.triggers.dao.CommitLog;
//import com.hmsonline.cassandra.triggers.dao.ConfigurationStore;
//import com.hmsonline.cassandra.triggers.dao.TriggerStore;
public abstract class VirgilServerTest {
static Thread serverThread = null;
@BeforeClass
public static void setup() throws Exception {
serverThread = new Thread(new EmbeddableServer(new String[] { "server", "src/test/resources/virgil.yaml",
"-embedded" }));
serverThread.start();
Thread.sleep(5000);
// ConfigurationStore.getStore().create();
// TriggerStore.getStore().create();
// CommitLog.getCommitLog().create();
}
@AfterClass
public static void tearDown() throws Exception {
serverThread.interrupt();
}
}