Skip to content

Commit

Permalink
GT-2200 Update Test Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gyasistory committed Nov 4, 2024
1 parent 22c6924 commit 64d28a4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 64d28a4

Please sign in to comment.