use of org.neo4j.bolt.runtime.BoltResultHandle in project neo4j by neo4j.
the class TransactionStateMachineTest method newTransactionStateMachineSPI.
private static TransactionStateMachineSPI newTransactionStateMachineSPI(BoltTransaction transaction) throws KernelException {
BoltResultHandle resultHandle = newResultHandle();
TransactionStateMachineSPI stateMachineSPI = mock(TransactionStateMachineSPI.class);
when(stateMachineSPI.beginTransaction(any(), any(), any(), any(), any(), any())).thenReturn(transaction);
when(stateMachineSPI.executeQuery(any(), anyString(), any())).thenReturn(resultHandle);
return stateMachineSPI;
}
Aggregations