
About this episode
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
Get every episode summarized
Each time Fragmented - AI Developer Podcast publishes, we email you a written briefing from the transcript — the topics, who appeared, and any specific claims, with the ad reads skipped.
Email me new episodesFree for 3 shows. No card needed.
Hosts & guests
No transcript yet
This episode has not been transcribed. Request it and it moves to the front of the queue.
More episodes
More from Fragmented - AI Developer Podcast

311 - Self learning harnesses are here
Fragmented - AI Developer Podcast

310 - Mitchell Hashimoto on Ghostty & His Agentic Coding Workflow
Fragmented - AI Developer Podcast

309 - Background Agents
Fragmented - AI Developer Podcast

308 - How Image Diffusion Models Work - the 20 minute explainer
Fragmented - AI Developer Podcast