Skip to content

Commit

Permalink
lambdas_removed
Browse files Browse the repository at this point in the history
  • Loading branch information
elisheva-qlogic committed Nov 1, 2018
1 parent 4142b42 commit 31c2d79
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import org.mockito.ArgumentCaptor;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.runners.MockitoJUnitRunner;
import org.mockito.stubbing.Answer;
import org.threeten.bp.Duration;
Expand Down Expand Up @@ -235,7 +236,12 @@ public void proxyMutateRowTest() {
@Test
public void mutateRowTest() {
Mockito.when(mockMutateRowCallable.futureCall(any(RowMutation.class)))
.thenAnswer((Answer) (invocationOnMock) -> ApiFutures.immediateFuture(Empty.getDefaultInstance()));
.thenAnswer(new Answer() {
@Override
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
return ApiFutures.immediateFuture(Empty.getDefaultInstance());
}
});

RowMutation request =
RowMutation.create("fake-table", "some-key")
Expand All @@ -260,7 +266,12 @@ public void proxyBulkMutatesRowTest() {
@Test
public void bulkMutatesRowTest() {
Mockito.when(mockBulkMutateRowsCallable.futureCall(any(BulkMutation.class)))
.thenAnswer((Answer) (invocationOnMock) -> ApiFutures.immediateFuture(Empty.getDefaultInstance()));
.thenAnswer(new Answer() {
@Override
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
return ApiFutures.immediateFuture(Empty.getDefaultInstance());
}
});

BulkMutation request =
BulkMutation.create("fake-table")
Expand Down

0 comments on commit 31c2d79

Please sign in to comment.