Skip to content

Commit 061de21

Browse files
Update to mockito 2 api
1 parent 7e1255c commit 061de21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedModuleTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ public void setUp() {
6262
PowerMockito.doAnswer(new Answer<Void>() {
6363
@Override
6464
public Void answer(InvocationOnMock invocation) throws Throwable {
65-
mUIBlocks.add(invocation.getArgumentAt(0, UIBlock.class));
65+
mUIBlocks.add((UIBlock)invocation.getArgument(0));
6666
return null;
6767
}
6868
}).when(mUIManager).addUIBlock(any(UIBlock.class));
6969
PowerMockito.doAnswer(new Answer<Void>() {
7070
@Override
7171
public Void answer(InvocationOnMock invocation) throws Throwable {
72-
mUIBlocks.add(0, invocation.getArgumentAt(0, UIBlock.class));
72+
mUIBlocks.add(0, (UIBlock)invocation.getArgument(0));
7373
return null;
7474
}
7575
}).when(mUIManager).prependUIBlock(any(UIBlock.class));

0 commit comments

Comments
 (0)