Class FeatureSupportTest.GraphFunctionalityTest
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.AbstractGremlinTest
-
- org.apache.tinkerpop.gremlin.structure.FeatureSupportTest.GraphFunctionalityTest
-
- Enclosing class:
- FeatureSupportTest
public static class FeatureSupportTest.GraphFunctionalityTest extends AbstractGremlinTest
Feature checks that testGraph
functionality to determine if a feature should be on when it is marked as not supported.
-
-
Field Summary
-
Fields inherited from class org.apache.tinkerpop.gremlin.AbstractGremlinTest
config, g, graph, graphProvider, name, shouldTestIteratorLeak
-
-
Constructor Summary
Constructors Constructor Description GraphFunctionalityTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
shouldPrintTheFeatureList()
This isn't really a test.void
shouldSupportComputerIfAGraphCanCompute()
AGraph
that does not supportGraph.Features.GraphFeatures.FEATURE_COMPUTER
must callGraph.Exceptions.graphComputerNotSupported()
.void
shouldSupportMemoryIfAGraphAcceptsMemory()
AGraph
that does not supportGraph.Features.VariableFeatures.FEATURE_VARIABLES
must callGraph.Exceptions.variablesNotSupported()
.void
shouldSupportTransactionsIfAGraphConstructsATx()
AGraph
that does not supportGraph.Features.GraphFeatures.FEATURE_TRANSACTIONS
must callGraph.Exceptions.transactionsNotSupported()
.void
shouldThrowOnThreadedTransactionNotSupported()
-
Methods 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
-
-
-
-
Method Detail
-
shouldPrintTheFeatureList
public void shouldPrintTheFeatureList()
This isn't really a test. It just pretty prints the features for the graph for reference. Of course, if the implementing classes use anonymous inner classes it will
-
shouldSupportComputerIfAGraphCanCompute
public void shouldSupportComputerIfAGraphCanCompute() throws Exception
AGraph
that does not supportGraph.Features.GraphFeatures.FEATURE_COMPUTER
must callGraph.Exceptions.graphComputerNotSupported()
.- Throws:
Exception
-
shouldSupportTransactionsIfAGraphConstructsATx
public void shouldSupportTransactionsIfAGraphConstructsATx() throws Exception
AGraph
that does not supportGraph.Features.GraphFeatures.FEATURE_TRANSACTIONS
must callGraph.Exceptions.transactionsNotSupported()
.- Throws:
Exception
-
shouldSupportMemoryIfAGraphAcceptsMemory
public void shouldSupportMemoryIfAGraphAcceptsMemory() throws Exception
AGraph
that does not supportGraph.Features.VariableFeatures.FEATURE_VARIABLES
must callGraph.Exceptions.variablesNotSupported()
.- Throws:
Exception
-
shouldThrowOnThreadedTransactionNotSupported
public void shouldThrowOnThreadedTransactionNotSupported()
-
-