Skip to content

Commit

Permalink
Update to mockito 2 api
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed Aug 23, 2018
1 parent 7e1255c commit 061de21
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ public void setUp() {
PowerMockito.doAnswer(new Answer<Void>() {
@Override
public Void answer(InvocationOnMock invocation) throws Throwable {
mUIBlocks.add(invocation.getArgumentAt(0, UIBlock.class));
mUIBlocks.add((UIBlock)invocation.getArgument(0));
return null;
}
}).when(mUIManager).addUIBlock(any(UIBlock.class));
PowerMockito.doAnswer(new Answer<Void>() {
@Override
public Void answer(InvocationOnMock invocation) throws Throwable {
mUIBlocks.add(0, invocation.getArgumentAt(0, UIBlock.class));
mUIBlocks.add(0, (UIBlock)invocation.getArgument(0));
return null;
}
}).when(mUIManager).prependUIBlock(any(UIBlock.class));
Expand Down

0 comments on commit 061de21

Please sign in to comment.