Fragmented
059: Interview with Chiu-Ki
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 [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