Use JUnit 5 @AfterEach instead of JUnit 4 @After (#479)

This commit is contained in:
Brian Yencho 2024-01-03 08:35:31 -06:00 committed by Álison Fernandes
parent 0d3038a717
commit a6b2357fb0

View file

@ -5,7 +5,7 @@ import com.x8bit.bitwarden.data.platform.datasource.network.core.ResultCallAdapt
import com.x8bit.bitwarden.data.platform.datasource.network.di.PlatformNetworkModule
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.mockwebserver.MockWebServer
import org.junit.After
import org.junit.jupiter.api.AfterEach
import retrofit2.Retrofit
/**
@ -23,7 +23,7 @@ abstract class BaseServiceTest {
.addConverterFactory(json.asConverterFactory("application/json".toMediaType()))
.build()
@After
@AfterEach
fun after() {
server.shutdown()
}