From 8b7d1bfc5183709c03f06182d0a04209d0000b4c Mon Sep 17 00:00:00 2001 From: David Perez Date: Tue, 6 Feb 2024 12:54:49 -0600 Subject: [PATCH] Fix incorrect test imports (#966) --- .../platform/datasource/network/core/ResultCallAdapterTest.kt | 4 ++-- .../platform/datasource/network/service/PushServiceTest.kt | 2 +- .../data/vault/datasource/network/service/SyncServiceTest.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/test/java/com/x8bit/bitwarden/data/platform/datasource/network/core/ResultCallAdapterTest.kt b/app/src/test/java/com/x8bit/bitwarden/data/platform/datasource/network/core/ResultCallAdapterTest.kt index 0a4b9af3e..e6688270e 100644 --- a/app/src/test/java/com/x8bit/bitwarden/data/platform/datasource/network/core/ResultCallAdapterTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/data/platform/datasource/network/core/ResultCallAdapterTest.kt @@ -3,7 +3,7 @@ package com.x8bit.bitwarden.data.platform.datasource.network.core import kotlinx.coroutines.runBlocking import okhttp3.mockwebserver.MockResponse import okhttp3.mockwebserver.MockWebServer -import org.junit.After +import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.Assertions.assertTrue import org.junit.jupiter.api.Test import retrofit2.Retrofit @@ -21,7 +21,7 @@ class ResultCallAdapterTest { .build() .create() - @After + @AfterEach fun after() { server.shutdown() } diff --git a/app/src/test/java/com/x8bit/bitwarden/data/platform/datasource/network/service/PushServiceTest.kt b/app/src/test/java/com/x8bit/bitwarden/data/platform/datasource/network/service/PushServiceTest.kt index 82a55dc91..198e067b6 100644 --- a/app/src/test/java/com/x8bit/bitwarden/data/platform/datasource/network/service/PushServiceTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/data/platform/datasource/network/service/PushServiceTest.kt @@ -5,8 +5,8 @@ import com.x8bit.bitwarden.data.platform.datasource.network.api.PushApi import com.x8bit.bitwarden.data.platform.datasource.network.model.PushTokenRequest import kotlinx.coroutines.test.runTest import okhttp3.mockwebserver.MockResponse -import org.junit.Test import org.junit.jupiter.api.Assertions.assertEquals +import org.junit.jupiter.api.Test import retrofit2.create import java.util.UUID diff --git a/app/src/test/java/com/x8bit/bitwarden/data/vault/datasource/network/service/SyncServiceTest.kt b/app/src/test/java/com/x8bit/bitwarden/data/vault/datasource/network/service/SyncServiceTest.kt index 00f1ba911..988abd2f1 100644 --- a/app/src/test/java/com/x8bit/bitwarden/data/vault/datasource/network/service/SyncServiceTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/data/vault/datasource/network/service/SyncServiceTest.kt @@ -5,8 +5,8 @@ import com.x8bit.bitwarden.data.vault.datasource.network.api.SyncApi import com.x8bit.bitwarden.data.vault.datasource.network.model.createMockSyncResponse import kotlinx.coroutines.test.runTest import okhttp3.mockwebserver.MockResponse -import org.junit.Test import org.junit.jupiter.api.Assertions.assertEquals +import org.junit.jupiter.api.Test import retrofit2.create class SyncServiceTest : BaseServiceTest() {