Class AbstractGremlinProcessTest
java.lang.Object
org.apache.tinkerpop.gremlin.AbstractGremlinTest
org.apache.tinkerpop.gremlin.process.AbstractGremlinProcessTest
- Direct Known Subclasses:
CloneVertexProgramTest,CoreTraversalTest,EarlyLimitStrategyProcessTest,ElementIdStrategyProcessTest,EventStrategyProcessTest,ExplainTest,GraphComputerTest,IncidentToAdjacentStrategyProcessTest,LambdaStepTest,MatchTest,PageRankVertexProgramTest,ProfileTest,ProgramTest,ShortestPathVertexProgramTest,TraversalInterruptionComputerTest,TraversalInterruptionTest
Base test class for Gremlin Process tests.
- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Field Summary
Fields inherited from class org.apache.tinkerpop.gremlin.AbstractGremlinTest
config, g, graph, graphProvider, name, shouldTestIteratorLeak -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckHasNext(boolean expected, Traversal traversal) static <A,B> void static <T> voidcheckOrderedResults(List<T> expectedResults, Traversal<?, T> traversal) static <T> voidcheckResults(List<T> expectedResults, Traversal<?, T> traversal) static <T> voidcheckResults(Map<T, Long> expectedResults, Traversal<?, T> traversal) static voidcheckSideEffects(TraversalSideEffects sideEffects, Object... keysClasses) protected booleanDetermines if a graph meets requirements for execution.protected booleanDetermines if this test suite has "computer" requirements.makeMapList(int size, Object... keyValues) voidMethods inherited from class org.apache.tinkerpop.gremlin.AbstractGremlinTest
afterLoadGraphWith, assertVertexEdgeCounts, beforeLoadGraphWith, convertToEdge, convertToEdge, convertToEdgeId, convertToEdgeId, convertToVertex, convertToVertex, convertToVertexId, convertToVertexId, convertToVertexProperty, convertToVertexProperty, convertToVertexPropertyId, convertToVertexPropertyId, getAssertVertexEdgeCounts, printTraversalForm, setup, tearDown, tryCommit, tryCommit, tryRollback, validateException, verifyRootIdentification, verifyUniqueStepIds
-
Constructor Details
-
AbstractGremlinProcessTest
public AbstractGremlinProcessTest()
-
-
Method Details
-
graphMeetsTestRequirements
protected boolean graphMeetsTestRequirements()Determines if a graph meets requirements for execution. All gremlin process tests should check this method as part of a call toassumeTrueto ensure that the test doesn't require the computer feature or if it does require the computer feature then ensure that the graph being tested supports it. -
hasGraphComputerRequirement
protected boolean hasGraphComputerRequirement()Determines if this test suite has "computer" requirements. -
setupTest
public void setupTest() -
checkSideEffects
-
checkOrderedResults
-
checkResults
-
checkResults
-
checkMap
-
checkHasNext
-
makeMapList
-