Testing Parcelable and Serializable classes

It’s hard to write an app in Android without coming across the need to serialise data using either Parcelable or Serializable. In this article, we will explore why at Babylon Health we test our implementations of these interfaces even when using code-generation tools like @Parcelize, and the tools we use to help us write tests that work for all our classes.

Why test Parcelable and…

--

--

--

Matt Dolan has been eating doughnuts and developing with Android since the dark days of v1.6.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How To Implement The Activity Result API TakePicture Contract With Uri Return Type

Android TDD Part 4— Mock and Stub

A Refined Approach to MVC in Android Part 5 — Extending to Lists and Fragments

Flutter Quick Bites Part 1: Spread Operator, Visibility with a twist.

Kotlin Coroutines: The Suspend Function

Native Splash Screen in Flutter Using Lottie

Jetpack Compose Drop Shadow Text Effect

Implement Continuous Speech Recognition on Android

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matthew Dolan

Matthew Dolan

Matt Dolan has been eating doughnuts and developing with Android since the dark days of v1.6.

More from Medium

Dagger 2 Dependency Injection Part 1

Automate library publishing to Maven Central with GitHub Actions Workflow Dispatch 🤖

Android WebView(Kotlin): handling Geolocation permission request

Singleton Design Pattern in Kotlin and Java — Made Easy and Simple