Merge pull request #72 from fknives/core-again-fixes

Fixing missing code snippet and wrong DisplayName
This commit is contained in:
Gergely Hegedis 2022-04-11 10:19:43 +03:00 committed by GitHub
commit 8659488b6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 6 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`