Mockk with Espresso Introduction (Espresso for Beginners PART 12)

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 18

  • @EddyCaffrey
    @EddyCaffrey 5 лет назад +4

    Yes! Mocking... 👍. Thanks

  • @zyanile
    @zyanile 5 лет назад +1

    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

  • @mjstudio6843
    @mjstudio6843 4 года назад

    I don't know well about mockk but mockito-inline library now supports final class mocking automatically. Anyway thank for great video

  • @cazimirroman3508
    @cazimirroman3508 4 года назад +1

    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

  • @John_X_GR
    @John_X_GR 2 года назад

    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!

  • @thomask7460
    @thomask7460 2 года назад

    Would it make sense to use something like mockk to mock a listener or callback or something that never actually returns ?

  • @savin1999
    @savin1999 5 лет назад +2

    Thanks 😊

  • @nosrehcorporation
    @nosrehcorporation 4 года назад

    Is the advanced course ready to sign in?

  • @Sumitmaurya070
    @Sumitmaurya070 3 года назад

    sir i am confused bw espresso and mock. same example u did with espresso.

  • @marlonlom
    @marlonlom 4 года назад

    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?

  • @mohammadramshini8823
    @mohammadramshini8823 3 года назад

    Hi mitch ,I had read if you use fragment with cunstructor it will crash.It happened to me.why you did it?

  • @marlonlom
    @marlonlom 4 года назад

    when running the u tests, the emulator was not displayed ... those were unit tests?

  • @TolgayToklar
    @TolgayToklar 5 лет назад

    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?

    • @codingwithmitch
      @codingwithmitch  5 лет назад +2

      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.

  • @vova-ambipanchenko3006
    @vova-ambipanchenko3006 3 года назад

    thank you a lot for your course!!!

  • @arulwastaken
    @arulwastaken 5 лет назад +1

    Wooooo

  • @saurabhmhjn
    @saurabhmhjn 4 года назад

    8:58 what do you mean you can't inject into a fragment constructor? you can always do that even without using Fragment factory

    • @codingwithmitch
      @codingwithmitch  4 года назад +1

      No. You can only do field injection. Not constructor injection.