From c7197d74f1f37a650f192ad39f1fab6b999080cc 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 --- .../org/cru/godtools/account/GodToolsAccountManagerTest.kt | 5 ++++- .../kotlin/org/cru/godtools/account/LoginResponseTest.kt | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/library/account/src/test/kotlin/org/cru/godtools/account/GodToolsAccountManagerTest.kt b/library/account/src/test/kotlin/org/cru/godtools/account/GodToolsAccountManagerTest.kt index f0e22c519a..75c31b7ded 100644 --- a/library/account/src/test/kotlin/org/cru/godtools/account/GodToolsAccountManagerTest.kt +++ b/library/account/src/test/kotlin/org/cru/godtools/account/GodToolsAccountManagerTest.kt @@ -57,7 +57,10 @@ class GodToolsAccountManagerTest { @Test fun verifyInjectedProvidersSorted() { - val manager = GodToolsAccountManager(providers = setOf(provider2, provider1), userApi = { userApi }) + val manager = GodToolsAccountManager( + providers = setOf(provider2, provider1), + userApi = { userApi }, + ) assertEquals(listOf(provider1, provider2), manager.providers) } 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()