use of org.apache.tinkerpop.gremlin.process.traversal.traverser.util.TraverserSet in project janusgraph by JanusGraph.
the class JanusGraphMultiQueryStepTest method generateTestParameters.
private static Stream<Arguments> generateTestParameters() {
Traversal.Admin mockedTraversal = mock(Traversal.Admin.class);
when(mockedTraversal.getTraverserSetSupplier()).thenReturn(TraverserSet::new);
MultiQueriable mqA = mock(MultiQueriable.class);
MultiQueriable mqB = mock(MultiQueriable.class);
List<MultiQueriable> emptyClientList = Collections.emptyList();
List<MultiQueriable> singleClientList = Collections.singletonList(mqA);
List<MultiQueriable> multiClientList = Arrays.asList(mqA, mqB);
return Arrays.stream(new Arguments[] { arguments(mockedTraversal, true, emptyClientList), arguments(mockedTraversal, false, emptyClientList), arguments(mockedTraversal, true, singleClientList), arguments(mockedTraversal, false, singleClientList), arguments(mockedTraversal, true, multiClientList), arguments(mockedTraversal, false, multiClientList) });
}
Aggregations