From 64d28a4095b82b444f158127cb5f42c6a791077f Mon Sep 17 00:00:00 2001 From: Gyasi Story Date: Tue, 22 Oct 2024 16:05:42 -0400 Subject: [PATCH] GT-2200 Update Test Coverage --- .../kotlin/org/cru/godtools/account/LoginResponseTest.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/account/src/test/kotlin/org/cru/godtools/account/LoginResponseTest.kt b/library/account/src/test/kotlin/org/cru/godtools/account/LoginResponseTest.kt index faaa08b554..6e73ad5f8a 100644 --- a/library/account/src/test/kotlin/org/cru/godtools/account/LoginResponseTest.kt +++ b/library/account/src/test/kotlin/org/cru/godtools/account/LoginResponseTest.kt @@ -33,6 +33,12 @@ class LoginResponseTest { assertEquals(LoginResponse.Error.UserAlreadyExists, readParcelable(data)) } + @Test + fun `LoginResponse - Error - NotConnected - Parcelable`() { + val data = writeParcelable(LoginResponse.Error.NotConnected) + assertEquals(LoginResponse.Error.NotConnected, readParcelable(data)) + } + private fun writeParcelable(obj: Parcelable) = Parcel.obtain() .apply { writeParcelable(obj, 0) } .marshall()