Search in sources :

Example 1 with AccessCapability

use of org.neo4j.kernel.impl.factory.AccessCapability 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();
}
Also used : TxStateHolder(org.neo4j.kernel.api.txstate.TxStateHolder) AccessCapability(org.neo4j.kernel.impl.factory.AccessCapability) StorageStatement(org.neo4j.storageengine.api.StorageStatement) Procedures(org.neo4j.kernel.impl.proc.Procedures) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 TxStateHolder (org.neo4j.kernel.api.txstate.TxStateHolder)1 AccessCapability (org.neo4j.kernel.impl.factory.AccessCapability)1 Procedures (org.neo4j.kernel.impl.proc.Procedures)1 StorageStatement (org.neo4j.storageengine.api.StorageStatement)1