File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
google-cloud-spanner/src/test/java/com/google/cloud/spanner Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1616
1717package com .google .cloud .spanner ;
1818
19+ import static org .mockito .ArgumentMatchers .any ;
20+ import static org .mockito .ArgumentMatchers .eq ;
1921import static org .mockito .Mockito .mock ;
2022import static org .mockito .Mockito .verify ;
2123import static org .mockito .Mockito .when ;
@@ -42,7 +44,7 @@ public void testCommitReturnsCommitStats() {
4244 when (oTspan .makeCurrent ()).thenReturn (mock (Scope .class ));
4345 try (AsyncTransactionManagerImpl manager =
4446 new AsyncTransactionManagerImpl (session , span , Options .commitStats ())) {
45- when (session .newTransaction (Options .fromTransactionOptions (Options .commitStats ())))
47+ when (session .newTransaction (eq ( Options .fromTransactionOptions (Options .commitStats ())), any ( )))
4648 .thenReturn (transaction );
4749 when (transaction .ensureTxnAsync ()).thenReturn (ApiFutures .immediateFuture (null ));
4850 Timestamp commitTimestamp = Timestamp .ofTimeMicroseconds (1 );
You can’t perform that action at this time.
0 commit comments