Unit Testing API-Specific Code on Android

A refined guide after several misfired attempts

Oliver Spryn
Better Programming
Published in
4 min readNov 17, 2021

--

A person holding a Pixel 4 above the product box

Have you ever looked at something for so long that you feel you have exhausted every possible approach to a solution? Finally, when you arrive at your very last technique, it leaves you baffled as to why it didn’t occur to you sooner? That was my experience with unit testing API-specific code on Android.

--

--