android10 / android10/Inside_Android_Testing

ArgumentCaptor captures caller instead of interface class

Đang mở
#1 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
53
Fork
13
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi Fernando,

Thank you for your tutorial. It is really helpfull for me and got me started writing my first unit test for my android applications. I have one problem though which is described in this stackoverflow post: https://stackoverflow.com/questions/51797291/argumentcaptor-captures-wrong-class

Basically where you have **dummyCallbackArgumentCaptor.getValue().onSuccess(results);**, I get the dummyCaller as a response to **dummyCallbackArgumentCaptor.getValue()**, so naturally i cannot call onSucess(results) on it. As i write these lines I got an idea to actually clone your repository and see if I am getting the tests to pass...

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.