use of org.neo4j.kernel.api.txstate.TxStateHolder in project neo4j by neo4j.
the class KernelStatementTest method assertStatementIsNotOpenWhileAcquireIsNotInvoked.
@Test(expected = NotInTransactionException.class)
public void assertStatementIsNotOpenWhileAcquireIsNotInvoked() {
KernelTransactionImplementation transaction = mock(KernelTransactionImplementation.class);
TxStateHolder txStateHolder = mock(TxStateHolder.class);
StorageStatement storeStatement = mock(StorageStatement.class);
AccessCapability accessCapability = mock(AccessCapability.class);
Procedures procedures = mock(Procedures.class);
KernelStatement statement = new KernelStatement(transaction, txStateHolder, storeStatement, procedures, accessCapability, LockTracer.NONE);
statement.assertOpen();
}
Aggregations