Hi I'm trying to run the below Tinkerpop test to test out some of the changes I've made to Janusgraph. By copying the test over from Tinkerpop repo into Janusgraph repo (just for testing one test).
@RunWith(Parameterized.class)public class TraversalInterruptionTest extends AbstractGremlinProcessTest { private static final Logger logger = LoggerFactory.getLogger(TraversalInterruptionTest.class); @Parameterized.Parameters(name = "expectInterruption({0})") public static Iterable<Object[]> data() { return Arrays.asList(new Object[][]{ // ... }); } @Parameterized.Parameter(value = 0) public String name; @Parameterized.Parameter(value = 1) public Function<GraphTraversalSource,GraphTraversal<?,?>> traversalBeforePause; @Parameterized.Parameter(value = 2) public UnaryOperator<GraphTraversal<?,?>> traversalAfterPause; @Test @LoadGraphWith(GRATEFUL) public void shouldRespectThreadInterruptionInVertexStep() throws Exception { // ... }}
@RunWith(Parameterized.class)public class TraversalInterruptionTest extends AbstractGremlinProcessTest { private static final Logger logger = LoggerFactory.getLogger(TraversalInterruptionTest.class); @Parameterized.Parameters(name = "expectInterruption({0})") public static Iterable<Object[]> data() { return Arrays.asList(new Object[][]{ // ... }); } @Parameterized.Parameter(value = 0) public String name; @Parameterized.Parameter(value = 1) public Function<GraphTraversalSource,GraphTraversal<?,?>> traversalBeforePause; @Parameterized.Parameter(value = 2) public UnaryOperator<GraphTraversal<?,?>> traversalAfterPause; @Test @LoadGraphWith(GRATEFUL) public void shouldRespectThreadInterruptionInVertexStep() throws Exception { // ... }}
But I'm getting
java.lang.NullPointerException: Cannot invoke "org.apache.tinkerpop.gremlin.GraphProvider.getStaticFeatures()" because "this.innerGraphProvider" is null
java.lang.NullPointerException: Cannot invoke "org.apache.tinkerpop.gremlin.GraphProvider.getStaticFeatures()" because "this.innerGraphProvider" is null
I need to be able to inject the graph implementation into this test somehow? How can I do that?