Skip to content
Simply Delicious Code

Month: August 2020

Testing by mocking Injected Component with Dagger 2 in Android development.

August 11, 2020 m.quan.lam Uncategorized

A key strength of Dependency Injection is that unit testing with DI supposed to be easy by switching components with their mock representatives. To be able to successfully mock a dependency is not hard, but it still required a few steps that may take a couple hours to get right. Below is a tutorial on…

Read more

Recent Posts

  • Leetcode problem 23. Merge k Sorted Lists (HARD)
  • Testing by mocking Injected Component with Dagger 2 in Android development.
  • Alternative colored path BFS in Kotlin
  • 720. Longest Word in Dictionary – Using modified Trie
  • House Robber II – How to rob houses efficiently.

Recent Comments

    Archives

    • October 2023
    • August 2020
    • February 2020
    • October 2019
    • September 2019

    Categories

    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    ©2026 Simply Delicious Code | Created with WordPress and SuperbThemes.com