Skip to content

Commit

Permalink
Fixed broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
fickludd committed Sep 16, 2016
1 parent 85cec0e commit 93ef5fa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ class TransactionBoundQueryContextTest extends CypherFunSuite {
test("should mark transaction failed if not successful") {
// GIVEN
when(outerTx.success()).thenThrow(new AssertionError("Shouldn't be called"))
val transactionalContext = TransactionalContextWrapperv3_1(createTransactionContext(graph, outerTx))
val tc = new Neo4jTransactionalContext(graph, outerTx, KernelTransaction.Type.`implicit`, AccessMode.Static.FULL,
statement, null, locker, null, null, null)
val transactionalContext = TransactionalContextWrapperv3_1(tc)
val context = new TransactionBoundQueryContext(transactionalContext)(indexSearchMonitor)
// WHEN
context.transactionalContext.close(success = false)

// THEN
verify(outerTx).transactionType()
verify(outerTx).mode()
verify(outerTx).failure()
verify(outerTx).close()
verifyNoMoreInteractions(outerTx)
Expand Down

0 comments on commit 93ef5fa

Please sign in to comment.