https://kotlinlang.org logo
#android
Title
# android
a

Abhishek Bansal

11/10/2019, 9:29 AM
Setting up UI unit testing in Android is pain. I recently had this experience and wrote this article which tries to consolidate all pain points/gotchas at single place. https://link.medium.com/VtccFcwWu1
r

rkeazor

11/10/2019, 2:37 PM
Very Nice ! Although two things: Mockito Inline can test Kotlin Final Classes. So you do not have to make them open for test. And did you use androidTestImplementation io.mock.mock-android?
a

Abhishek Bansal

11/10/2019, 3:11 PM
Hello, thanks! I used
androidTestImplementation 'org.mockito:mockito-android:3.1.0'
. I will lookup about
io.mock.mock-android
and
Mockito Inline
.
r

rkeazor

11/10/2019, 3:15 PM
Mock-android is the mockk for android test
👍 1
Yea mockito inline is what you need for mockito
👍 1
2 Views