public class EngineContext
extends org.junit.rules.ExternalResource
Start the Grakn Engine server before each test class and stop after.
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
GraknSession |
factoryWithNewKeyspace() |
TaskManager |
getTaskManager() |
EngineContext |
port(int port) |
GraknEngineServer |
server() |
static EngineContext |
startInMemoryServer() |
static EngineContext |
startKafkaServer() |
static EngineContext |
startSingleQueueServer() |
public static EngineContext startKafkaServer()
public static EngineContext startSingleQueueServer()
public static EngineContext startInMemoryServer()
public EngineContext port(int port)
public GraknEngineServer server()
public TaskManager getTaskManager()
public GraknSession factoryWithNewKeyspace()
public void before()
throws Throwable
before in class org.junit.rules.ExternalResourceThrowablepublic void after()
after in class org.junit.rules.ExternalResourceCopyright © 2017 Grakn Labs Ltd. All rights reserved.