public class GraphContext extends Object implements org.junit.rules.TestRule
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
GraphContext |
assumeTrue(boolean bool) |
static GraphContext |
empty() |
GraknGraph |
graph() |
void |
load(java.util.function.Consumer<GraknGraph> build) |
static GraphContext |
preLoad(java.util.function.Consumer<GraknGraph> build) |
static GraphContext |
preLoad(String... filesToLoad) |
void |
rollback() |
public static GraphContext empty()
public static GraphContext preLoad(java.util.function.Consumer<GraknGraph> build)
public static GraphContext preLoad(String... filesToLoad)
public GraphContext assumeTrue(boolean bool)
public GraknGraph graph()
public void rollback()
public void load(java.util.function.Consumer<GraknGraph> build)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRuleCopyright © 2017 Grakn Labs Ltd. All rights reserved.