Thanks for all of yours tutorials every single video is very helpful. I really hope to see tutorials about service and Broadcast for fill up to progress bar
if you get any issues importing the mockk library check your build.gradle. The version should not contain curly braces for the version number. More info here: stackoverflow.com/questions/57325617/gradle-fails-failed-to-resolve-io-after-removing-kotlintest
Hey Mitch! Thank you a lot about your help man! Question: Can I use mockk with java? Or translate that kotlin code to java? Also, if I cant use mockk with java, can I use mockito instead for adding mocked/fake recyclerview items? Again thanks a lot for the help!
but, what about the mocking of final classes? im trying to use the mock thing for a viewmodel using a factory, and adding a factory of the fragment... how can i resolve that?
You have to mock the data source. It seems kind of silly here because I'm not doing an actual network request. But in a real situation the data source would be accessing the network or a cache. So it would need to be mocked.
Yes! Mocking... 👍. Thanks
Thanks for all of yours tutorials every single video is very helpful. I really hope to see tutorials about service and Broadcast for fill up to progress bar
I don't know well about mockk but mockito-inline library now supports final class mocking automatically. Anyway thank for great video
if you get any issues importing the mockk library check your build.gradle. The version should not contain curly braces for the version number. More info here: stackoverflow.com/questions/57325617/gradle-fails-failed-to-resolve-io-after-removing-kotlintest
Hey Mitch! Thank you a lot about your help man! Question: Can I use mockk with java? Or translate that kotlin code to java? Also, if I cant use mockk with java, can I use mockito instead for adding mocked/fake recyclerview items?
Again thanks a lot for the help!
Would it make sense to use something like mockk to mock a listener or callback or something that never actually returns ?
Thanks 😊
Is the advanced course ready to sign in?
sir i am confused bw espresso and mock. same example u did with espresso.
but, what about the mocking of final classes? im trying to use the mock thing for a viewmodel using a factory, and adding a factory of the fragment... how can i resolve that?
Hi mitch ,I had read if you use fragment with cunstructor it will crash.It happened to me.why you did it?
when running the u tests, the emulator was not displayed ... those were unit tests?
Hey Mitch, what is the point of using mocck in here? We are basicly doing the same thing in the previous videos, am i missing something?
You have to mock the data source.
It seems kind of silly here because I'm not doing an actual network request. But in a real situation the data source would be accessing the network or a cache. So it would need to be mocked.
thank you a lot for your course!!!
Wooooo
8:58 what do you mean you can't inject into a fragment constructor? you can always do that even without using Fragment factory
No. You can only do field injection. Not constructor injection.