Fixes lint errors
This commit is contained in:
parent
d3d99dd3ba
commit
47d5d09af2
|
@ -30,15 +30,13 @@ class SessionParamsMapperTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `when mapping entity, then map as SessionParams`() {
|
fun `when mapping entity, then map as SessionParams`() {
|
||||||
|
|
||||||
val output = sessionParamsMapper.map(sessionParamsEntity)
|
val output = sessionParamsMapper.map(sessionParamsEntity)
|
||||||
|
|
||||||
fakeMoshi.assertSessionParamsWasMappedSuccessfully(output)
|
fakeMoshi.assertSessionParamsWasMappedSuccessfully(output)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `given null input, when mapping entity, then return null`() {
|
fun `when mapping null entity, then return null`() {
|
||||||
|
|
||||||
val output = sessionParamsMapper.map(nullSessionParamsEntity)
|
val output = sessionParamsMapper.map(nullSessionParamsEntity)
|
||||||
|
|
||||||
fakeMoshi.assertSessionParamsIsNull(output)
|
fakeMoshi.assertSessionParamsIsNull(output)
|
||||||
|
@ -64,15 +62,13 @@ class SessionParamsMapperTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `when mapping sessionParams, then map as SessionParamsEntity`() {
|
fun `when mapping sessionParams, then map as SessionParamsEntity`() {
|
||||||
|
|
||||||
val output = sessionParamsMapper.map(sessionParams)
|
val output = sessionParamsMapper.map(sessionParams)
|
||||||
|
|
||||||
fakeMoshi.assertSessionParamsEntityWasMappedSuccessfully(output)
|
fakeMoshi.assertSessionParamsEntityWasMappedSuccessfully(output)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `given null input, when mapping sessionParams, then return null`() {
|
fun `when mapping null sessionParams, then return null`() {
|
||||||
|
|
||||||
val output = sessionParamsMapper.map(nullSessionParams)
|
val output = sessionParamsMapper.map(nullSessionParams)
|
||||||
|
|
||||||
fakeMoshi.assertSessionParamsEntityWasMappedSuccessfully(output)
|
fakeMoshi.assertSessionParamsEntityWasMappedSuccessfully(output)
|
||||||
|
|
|
@ -26,7 +26,6 @@ class MigrateAuthTo005Test {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `when doMigrate, then LoginType field added`() {
|
fun `when doMigrate, then LoginType field added`() {
|
||||||
|
|
||||||
migrator.doMigrate(fakeRealm.instance)
|
migrator.doMigrate(fakeRealm.instance)
|
||||||
|
|
||||||
fakeRealm.verifyLoginTypeAdded()
|
fakeRealm.verifyLoginTypeAdded()
|
||||||
|
|
Loading…
Reference in New Issue