Class AbstractGremlinProcessTest
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.AbstractGremlinTest
-
- org.apache.tinkerpop.gremlin.process.AbstractGremlinProcessTest
-
- Direct Known Subclasses:
AddEdgeTest
,AggregateTest
,AndTest
,BranchTest
,ChooseTest
,CloneVertexProgramTest
,CoalesceTest
,CoinTest
,ComplexTest
,ConnectedComponentTest
,ConstantTest
,CoreTraversalTest
,CountTest
,CyclicPathTest
,DedupTest
,EarlyLimitStrategyProcessTest
,ElementIdStrategyProcessTest
,ElementMapTest
,EventStrategyProcessTest
,ExplainTest
,FilterTest
,FlatMapTest
,FoldTest
,GraphComputerTest
,GraphTest
,GroupCountTest
,GroupTest
,HasTest
,IncidentToAdjacentStrategyProcessTest
,IndexTest
,InjectTest
,IsTest
,LocalTest
,LoopsTest
,MapTest
,MatchTest
,MathTest
,MaxTest
,MeanTest
,MinTest
,OptionalTest
,OrderTest
,OrTest
,PageRankTest
,PageRankVertexProgramTest
,PartitionStrategyProcessTest
,PathTest
,PeerPressureTest
,ProfileTest
,ProgramTest
,ProjectTest
,PropertiesTest
,RangeTest
,ReadOnlyStrategyProcessTest
,ReadTest
,RepeatTest
,SackTest
,SampleTest
,SeedStrategyProcessTest
,SelectTest
,ShortestPathTest
,ShortestPathVertexProgramTest
,SideEffectCapTest
,SideEffectTest
,SimplePathTest
,StoreTest
,SubgraphStrategyProcessTest
,SubgraphTest
,SumTest
,TailTest
,TranslationStrategyProcessTest
,TraversalInterruptionComputerTest
,TraversalInterruptionTest
,TreeTest
,UnfoldTest
,UnionTest
,ValueMapTest
,VertexTest
,WhereTest
,WriteTest
public abstract class AbstractGremlinProcessTest extends AbstractGremlinTest
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 Constructor Description AbstractGremlinProcessTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <A,B>
voidcheckMap(Map<A,B> expectedMap, Map<A,B> actualMap)
static <T> void
checkOrderedResults(List<T> expectedResults, Traversal<?,T> traversal)
static <T> void
checkResults(List<T> expectedResults, Traversal<?,T> traversal)
static <T> void
checkResults(Map<T,Long> expectedResults, Traversal<?,T> traversal)
static void
checkSideEffects(TraversalSideEffects sideEffects, Object... keysClasses)
protected boolean
graphMeetsTestRequirements()
Determines if a graph meets requirements for execution.protected boolean
hasGraphComputerRequirement()
Determines if this test suite has "computer" requirements.<A,B>
List<Map<A,B>>makeMapList(int size, Object... keyValues)
void
setupTest()
-
Methods inherited from class org.apache.tinkerpop.gremlin.AbstractGremlinTest
afterLoadGraphWith, assertVertexEdgeCounts, beforeLoadGraphWith, convertToEdge, convertToEdgeId, convertToEdgeId, convertToVertex, convertToVertex, convertToVertexId, convertToVertexId, convertToVertexProperty, convertToVertexPropertyId, convertToVertexPropertyId, getAssertVertexEdgeCounts, printTraversalForm, setup, tearDown, tryCommit, tryCommit, tryRollback, validateException, verifyRootIdentification, verifyUniqueStepIds
-
-
-
-
Method Detail
-
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 toassumeTrue
to 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
public static void checkSideEffects(TraversalSideEffects sideEffects, Object... keysClasses)
-
checkOrderedResults
public static <T> void checkOrderedResults(List<T> expectedResults, Traversal<?,T> traversal)
-
checkResults
public static <T> void checkResults(List<T> expectedResults, Traversal<?,T> traversal)
-
checkResults
public static <T> void checkResults(Map<T,Long> expectedResults, Traversal<?,T> traversal)
-
-