Fixes lint errors
This commit is contained in:
parent
92f87a3a5a
commit
275505b3e6
@ -47,7 +47,7 @@ class DefaultSessionParamsCreatorTest : DefaultSessionParamsCreatorTestBase() {
|
|||||||
@Test
|
@Test
|
||||||
fun `given credentials homeServerUri is equal to homeServerConnectionConfig, when create, then do not validate`() = runBlockingTest {
|
fun `given credentials homeServerUri is equal to homeServerConnectionConfig, when create, then do not validate`() = runBlockingTest {
|
||||||
val homeServerConnectionConfigWithCredentialsUri = homeServerConnectionConfig.copy(homeServerUriBase = discoveryWithHomeServer.getHomeServerUri())
|
val homeServerConnectionConfigWithCredentialsUri = homeServerConnectionConfig.copy(homeServerUriBase = discoveryWithHomeServer.getHomeServerUri())
|
||||||
val output = sessionParamsCreator.create(credentialsWithHomeServer, homeServerConnectionConfigWithCredentialsUri , LoginType.UNKNOWN)
|
val output = sessionParamsCreator.create(credentialsWithHomeServer, homeServerConnectionConfigWithCredentialsUri, LoginType.UNKNOWN)
|
||||||
|
|
||||||
fakeIsValidClientServerApiTask.verifyNoExecution()
|
fakeIsValidClientServerApiTask.verifyNoExecution()
|
||||||
assertExpectedSessionParamsWithHomeServer(output)
|
assertExpectedSessionParamsWithHomeServer(output)
|
||||||
|
@ -35,8 +35,9 @@ class LoginTypeTest {
|
|||||||
val types = LoginType.values()
|
val types = LoginType.values()
|
||||||
|
|
||||||
types.forEach { type ->
|
types.forEach { type ->
|
||||||
if (type != LoginType.UNKNOWN)
|
if (type != LoginType.UNKNOWN) {
|
||||||
LoginType.fromValue(type.value) shouldNotBeEqualTo LoginType.UNKNOWN
|
LoginType.fromValue(type.value) shouldNotBeEqualTo LoginType.UNKNOWN
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user