Class TransactionTest
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.AbstractGremlinTest
-
- org.apache.tinkerpop.gremlin.structure.TransactionTest
-
public class TransactionTest extends AbstractGremlinTest
- 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 TransactionTest()
-
Method Summary
-
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
-
shouldHaveExceptionConsistencyWhenTransactionAlreadyOpen
public void shouldHaveExceptionConsistencyWhenTransactionAlreadyOpen()
-
shouldHaveExceptionConsistencyWhenTransactionOpenOnClose
public void shouldHaveExceptionConsistencyWhenTransactionOpenOnClose()
-
shouldHaveExceptionConsistencyWhenUsingManualTransaction
public void shouldHaveExceptionConsistencyWhenUsingManualTransaction()
-
shouldHaveExceptionConsistencyWhenUsingManualTransactionOnCommit
public void shouldHaveExceptionConsistencyWhenUsingManualTransactionOnCommit()
-
shouldHaveExceptionConsistencyWhenUsingManualTransactionOnRollback
public void shouldHaveExceptionConsistencyWhenUsingManualTransactionOnRollback()
-
shouldAllowJustCommitOnlyWithAutoTransaction
public void shouldAllowJustCommitOnlyWithAutoTransaction()
-
shouldAllowJustRollbackOnlyWithAutoTransaction
public void shouldAllowJustRollbackOnlyWithAutoTransaction()
-
shouldHaveExceptionConsistencyWhenOnCloseToNull
public void shouldHaveExceptionConsistencyWhenOnCloseToNull()
-
shouldHaveExceptionConsistencyWhenOnReadWriteToNull
public void shouldHaveExceptionConsistencyWhenOnReadWriteToNull()
-
shouldAllowAutoTransactionToWorkWithoutMutationByDefault
public void shouldAllowAutoTransactionToWorkWithoutMutationByDefault()
-
shouldNotifyTransactionListenersOnCommitSuccess
public void shouldNotifyTransactionListenersOnCommitSuccess()
-
shouldNotifyTransactionListenersInSameThreadOnlyOnCommitSuccess
public void shouldNotifyTransactionListenersInSameThreadOnlyOnCommitSuccess() throws Exception
- Throws:
Exception
-
shouldNotifyTransactionListenersOnRollbackSuccess
public void shouldNotifyTransactionListenersOnRollbackSuccess()
-
shouldNotifyTransactionListenersInSameThreadOnlyOnRollbackSuccess
public void shouldNotifyTransactionListenersInSameThreadOnlyOnRollbackSuccess() throws Exception
- Throws:
Exception
-
shouldCommitElementAutoTransactionByDefault
public void shouldCommitElementAutoTransactionByDefault()
-
shouldRollbackElementAutoTransactionByDefault
public void shouldRollbackElementAutoTransactionByDefault()
-
shouldCommitPropertyAutoTransactionByDefault
public void shouldCommitPropertyAutoTransactionByDefault()
-
shouldRollbackPropertyAutoTransactionByDefault
public void shouldRollbackPropertyAutoTransactionByDefault()
-
shouldCommitOnCloseWhenConfigured
public void shouldCommitOnCloseWhenConfigured() throws Exception
- Throws:
Exception
-
shouldRollbackOnCloseByDefault
public void shouldRollbackOnCloseByDefault() throws Exception
- Throws:
Exception
-
shouldExecuteWithCompetingThreads
public void shouldExecuteWithCompetingThreads()
-
shouldExecuteCompetingThreadsOnMultipleDbInstances
public void shouldExecuteCompetingThreadsOnMultipleDbInstances() throws Exception
- Throws:
Exception
-
shouldSupportTransactionIsolationCommitCheck
public void shouldSupportTransactionIsolationCommitCheck() throws Exception
- Throws:
Exception
-
shouldSupportMultipleThreadsOnTheSameTransaction
public void shouldSupportMultipleThreadsOnTheSameTransaction() throws Exception
- Throws:
Exception
-
shouldOpenTxWhenThreadedTransactionIsCreated
public void shouldOpenTxWhenThreadedTransactionIsCreated() throws Exception
- Throws:
Exception
-
shouldNotReuseThreadedTransaction
public void shouldNotReuseThreadedTransaction() throws Exception
- Throws:
Exception
-
shouldCountVerticesEdgesOnPreTransactionCommit
public void shouldCountVerticesEdgesOnPreTransactionCommit()
-
shouldSupportTransactionIsolationWithSeparateThreads
public void shouldSupportTransactionIsolationWithSeparateThreads() throws Exception
- Throws:
Exception
-
shouldAllowReferenceOfVertexOutsideOfOriginalTransactionalContextManual
public void shouldAllowReferenceOfVertexOutsideOfOriginalTransactionalContextManual()
-
shouldAllowReferenceOfEdgeOutsideOfOriginalTransactionalContextManual
public void shouldAllowReferenceOfEdgeOutsideOfOriginalTransactionalContextManual()
-
shouldAllowReferenceOfVertexOutsideOfOriginalTransactionalContextAuto
public void shouldAllowReferenceOfVertexOutsideOfOriginalTransactionalContextAuto()
-
shouldAllowReferenceOfEdgeOutsideOfOriginalTransactionalContextAuto
public void shouldAllowReferenceOfEdgeOutsideOfOriginalTransactionalContextAuto()
-
shouldAllowReferenceOfVertexIdOutsideOfOriginalThreadManual
public void shouldAllowReferenceOfVertexIdOutsideOfOriginalThreadManual() throws Exception
- Throws:
Exception
-
shouldAllowReferenceOfEdgeIdOutsideOfOriginalThreadManual
public void shouldAllowReferenceOfEdgeIdOutsideOfOriginalThreadManual() throws Exception
- Throws:
Exception
-
shouldAllowReferenceOfVertexIdOutsideOfOriginalThreadAuto
public void shouldAllowReferenceOfVertexIdOutsideOfOriginalThreadAuto() throws Exception
- Throws:
Exception
-
shouldAllowReferenceOfEdgeIdOutsideOfOriginalThreadAuto
public void shouldAllowReferenceOfEdgeIdOutsideOfOriginalThreadAuto() throws Exception
- Throws:
Exception
-
shouldNotShareTransactionReadWriteConsumersAcrossThreads
public void shouldNotShareTransactionReadWriteConsumersAcrossThreads() throws InterruptedException
- Throws:
InterruptedException
-
shouldNotShareTransactionCloseConsumersAcrossThreads
public void shouldNotShareTransactionCloseConsumersAcrossThreads() throws InterruptedException
- Throws:
InterruptedException
-
-