WorkManager: Advanced configuration & testing - MAD Skills

แชร์
ฝัง

ความคิดเห็น • 12

  • @1Ozgur
    @1Ozgur 3 ปีที่แล้ว +1

    How can I test a worker when I have the Hilt injection in the worker's constructor. I use 'TestListenableWorkerBuilder' but it throws 'IllegalStateException: Could not create an instance of ListenableWorker' and I couldn't find any info in the documentation. Thanks

    • @1Ozgur
      @1Ozgur 3 ปีที่แล้ว

      @@googleJay I have this already. I have custom parameters in the worker's constructor beside 'context' and 'worker parameters'. When I want to create instance of this Worker for test cases, it throws exceptions in every way I looked up. In addition, I couldn't find any info in the official documentation for this case.

    • @DerCheckerzeigts
      @DerCheckerzeigts 3 ปีที่แล้ว

      I have the same problem and no clue how to solve this. Bix blocker

  • @DerCheckerzeigts
    @DerCheckerzeigts 3 ปีที่แล้ว

    And what if I want to test a coroutineworker without initializing it? Just like "OneTimeWorkRequestBuilder"?

  • @oleksee
    @oleksee 3 ปีที่แล้ว +4

    Wow, this was very very useful! Didn't know at all about the debugging and testing bits. Really nice video!

  • @maxwellmapako3820
    @maxwellmapako3820 3 ปีที่แล้ว

    Just what I needed!! Thank you very much

  • @Kiran.Kumar-N_Biradar
    @Kiran.Kumar-N_Biradar 3 ปีที่แล้ว +2

    I am familiar with Java how can I code both Java and kotlin (step by step from beginning) and work manager
    I know basic but you explain in kotlin I not well in kotlin

    • @RinoSss
      @RinoSss 3 ปีที่แล้ว

      Start from Google codelabs. You will start loving Kotlin and hating java

  • @skydoves
    @skydoves 3 ปีที่แล้ว

    👍👍

  • @milanpatarak2107
    @milanpatarak2107 3 ปีที่แล้ว

    hello i have problem where í can contact you?

  • @মোহাম্মদরাজুআহমেদ-ছ৭ট

    💙👏👌💟🧡👍👍

  • @mdForid-hm4jz
    @mdForid-hm4jz 3 ปีที่แล้ว

    Hi