From 47d5d09af2071fd331ffb589ae3a859376c903ef Mon Sep 17 00:00:00 2001 From: ericdecanini Date: Thu, 3 Mar 2022 14:46:11 +0100 Subject: [PATCH] Fixes lint errors --- .../sdk/internal/auth/db/SessionParamsMapperTest.kt | 8 ++------ .../internal/auth/db/migration/MigrateAuthTo005Test.kt | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/matrix-sdk-android/src/test/java/org/matrix/android/sdk/internal/auth/db/SessionParamsMapperTest.kt b/matrix-sdk-android/src/test/java/org/matrix/android/sdk/internal/auth/db/SessionParamsMapperTest.kt index ffacb4b4a5..72b8305b8b 100644 --- a/matrix-sdk-android/src/test/java/org/matrix/android/sdk/internal/auth/db/SessionParamsMapperTest.kt +++ b/matrix-sdk-android/src/test/java/org/matrix/android/sdk/internal/auth/db/SessionParamsMapperTest.kt @@ -30,15 +30,13 @@ class SessionParamsMapperTest { @Test fun `when mapping entity, then map as SessionParams`() { - val output = sessionParamsMapper.map(sessionParamsEntity) fakeMoshi.assertSessionParamsWasMappedSuccessfully(output) } @Test - fun `given null input, when mapping entity, then return null`() { - + fun `when mapping null entity, then return null`() { val output = sessionParamsMapper.map(nullSessionParamsEntity) fakeMoshi.assertSessionParamsIsNull(output) @@ -64,15 +62,13 @@ class SessionParamsMapperTest { @Test fun `when mapping sessionParams, then map as SessionParamsEntity`() { - val output = sessionParamsMapper.map(sessionParams) fakeMoshi.assertSessionParamsEntityWasMappedSuccessfully(output) } @Test - fun `given null input, when mapping sessionParams, then return null`() { - + fun `when mapping null sessionParams, then return null`() { val output = sessionParamsMapper.map(nullSessionParams) fakeMoshi.assertSessionParamsEntityWasMappedSuccessfully(output) diff --git a/matrix-sdk-android/src/test/java/org/matrix/android/sdk/internal/auth/db/migration/MigrateAuthTo005Test.kt b/matrix-sdk-android/src/test/java/org/matrix/android/sdk/internal/auth/db/migration/MigrateAuthTo005Test.kt index efb7bce378..ab5b1f4c7a 100644 --- a/matrix-sdk-android/src/test/java/org/matrix/android/sdk/internal/auth/db/migration/MigrateAuthTo005Test.kt +++ b/matrix-sdk-android/src/test/java/org/matrix/android/sdk/internal/auth/db/migration/MigrateAuthTo005Test.kt @@ -26,7 +26,6 @@ class MigrateAuthTo005Test { @Test fun `when doMigrate, then LoginType field added`() { - migrator.doMigrate(fakeRealm.instance) fakeRealm.verifyLoginTypeAdded()