Pierre-Yves Ricau: Dagger Singleton (1 of 5) HD
Pierre-Yves Ricau wrote in a blog post that singletons should be extremely rare. But how do we inject mock objects into tests without singletons? Chiu-Ki brought her open source project to discuss with him. ----- Pierre-Yves Picau https://twitter.com/piwai Code https://github.com/chiuki/android-test-demo/tree/dagger-builder (1:03) Keeping the Daggers Sharp https://medium.com/square-corner-blog/keeping-the-daggers-sharp-%EF%B8%8F-230b3191c3f (1:52) Dagger 2 + Espresso 2 + Mockito http://blog.sqisland.com/2015/04/dagger-2-espresso-2-mockito.html