public class SessionContext extends CompositeTestRule
GraknTxs and GraknSessions.
Will make sure that any dependencies such as cassandra are running| Modifier and Type | Method and Description |
|---|---|
void |
after() |
static boolean |
canUseTx() |
static SessionContext |
create() |
ai.grakn.GraknSession |
newSession() |
protected List<org.junit.rules.TestRule> |
testRules() |
apply, beforepublic static SessionContext create()
protected List<org.junit.rules.TestRule> testRules()
testRules in class CompositeTestRulepublic static boolean canUseTx()
public ai.grakn.GraknSession newSession()
public void after()
after in class CompositeTestRuleCopyright © 2018 Grakn Labs Ltd. All rights reserved.