mirror of
https://github.com/bitwarden/android.git
synced 2024-11-26 19:36:18 +03:00
Use JUnit 5 @AfterEach instead of JUnit 4 @After (#479)
This commit is contained in:
parent
0d3038a717
commit
a6b2357fb0
1 changed files with 2 additions and 2 deletions
|
@ -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 com.x8bit.bitwarden.data.platform.datasource.network.di.PlatformNetworkModule
|
||||||
import okhttp3.MediaType.Companion.toMediaType
|
import okhttp3.MediaType.Companion.toMediaType
|
||||||
import okhttp3.mockwebserver.MockWebServer
|
import okhttp3.mockwebserver.MockWebServer
|
||||||
import org.junit.After
|
import org.junit.jupiter.api.AfterEach
|
||||||
import retrofit2.Retrofit
|
import retrofit2.Retrofit
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,7 +23,7 @@ abstract class BaseServiceTest {
|
||||||
.addConverterFactory(json.asConverterFactory("application/json".toMediaType()))
|
.addConverterFactory(json.asConverterFactory("application/json".toMediaType()))
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
@After
|
@AfterEach
|
||||||
fun after() {
|
fun after() {
|
||||||
server.shutdown()
|
server.shutdown()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue