Skip to content

Commit

Permalink
Fix use of Mockito's getArgumentAt
Browse files Browse the repository at this point in the history
This was removed in 2.7.6; see mockito/mockito#945
  • Loading branch information
alexwlchan committed Nov 24, 2020
1 parent 4a40737 commit 48daac5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ class S3PrefixTransferTest

implicit val transfer: S3Transfer = mock[S3Transfer]
when(transfer.transfer(any[S3ObjectLocation],any[S3ObjectLocation], any[Boolean])).thenAnswer((invocation: InvocationOnMock) => {
val src = invocation.getArgumentAt(0, classOf[S3ObjectLocation])
val dst = invocation.getArgumentAt(1, classOf[S3ObjectLocation])
val src = invocation.getArgument[S3ObjectLocation](0)
val dst = invocation.getArgument[S3ObjectLocation](1)
Left(TransferSourceFailure(src, dst))
})

Expand Down

0 comments on commit 48daac5

Please sign in to comment.