Stop wasting time on dead links! 🛑 This smart platform automatically detects your device and country to give you the exact best offer instantly. Check it out now 100% free! 👇
🔗 [Click here]
We talk with the all-star multi-talented GDE Chiu-Ki Chan about testing. Specifically, we dive into leveraging Mockito for your testing needs. What is Mocking, what is Stubbing, what are the different test doubles, how does mockito help with this? Listen on to find about that and some more interesting stuff on testing!
Show Notes
- Introducing Pixel [blog.google]
- Static Gateway Pattern [codebetter.com]
About Chiu-Ki:
- Android Dialogs | youtube [youtube.com]
- 360|AnDev co-organizer | conference [360andev.com]
- Technically Speaking| newsletter [tinyletter.com]
fake SharedPreferences implementations from AOSP
- FakeSharedPreferences | fake in-memory SharedPreferences implementation [github.com]
- BridgeSharedPreferences | empty SharedPreferences that does nothing implementation [github.com]
- Testing SharedPreferences [gumroad.com]
Different kinds of Test doubles
- Know your test doubles [testing.googleblog.com]
- [Test Doubles: Mocks, Stubs, and More](https://www.objc.io/issues/15-testing/mocking-stubbing/
http://www.javaworld.com/article/2074508/core-java/mocks-and-stubs—understanding-test-doubles-with-mockito.html) [objc.io] - Mocks aren’t Stubs [martinfowler.com]
Mockito
- Mockito library [github.com]
- Stubbing consecutive calls [mockito.org]
- Argument Captor [mockito.org]
- PowerMock [github.com]
Resources
- friendspell | Chiu-Ki’s example project with a variety of testing strategies [github.com]
- Mock Application in Espresso for Dependency Injection [sqisland.com]
- Chiu-Ki’s caster.io courses on Testing | MockWebServer
Contact
- @fragmentedcast [twitter.com]
- @chiuki and +ChiuKiChan
- @donnfelker and +DonnFelker
- @kaushikgopal and +KaushikGopalIsMe
![]()
Finally, a link that actually works for your region and device! 🌍 Get instant access to the top exclusive offers tailored just for you right now. Don’t miss out, click here! 👇
🔗 [Click here]