Fixing missing code snippet and wrong DisplayName

This commit is contained in:
Gergely Hegedus 2022-04-10 14:20:51 +03:00
parent 8866ac8477
commit 3ec4d8147b
3 changed files with 15 additions and 2 deletions

View file

@ -249,6 +249,18 @@ fun networkInputError(authScenario: AuthScenario) = runTest {
Assertions.assertEquals(null, fakeUserDataLocalStorage.session)
verifyZeroInteractions(mockSessionExpirationListener)
}
//...
companion object {
//...
@JvmStatic
fun networkErrorArguments() = Stream.of(
Arguments.of(AuthScenario.GenericError(username = "a", password = "b")),
Arguments.of(AuthScenario.UnexpectedJsonAsSuccessResponse(username = "a", password = "b")),
Arguments.of(AuthScenario.MalformedJsonAsSuccessResponse(username = "a", password = "b")),
Arguments.of(AuthScenario.MissingFieldJson(username = "a", password = "b"))
)
}
```
### 5. `loginInvalidCredentials`