mirror of
https://github.com/square/okhttp.git
synced 2026-01-14 07:22:20 +03:00
Move concurrent tests to Junit 5 (#6375)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
package okhttp3.internal.concurrent
|
||||
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import org.junit.Test
|
||||
import org.junit.jupiter.api.Test
|
||||
|
||||
class TaskLoggerTest {
|
||||
@Test fun formatTime() {
|
||||
|
||||
@@ -21,8 +21,8 @@ import java.util.concurrent.ThreadFactory
|
||||
import java.util.concurrent.TimeUnit
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import org.assertj.core.data.Offset
|
||||
import org.junit.After
|
||||
import org.junit.Test
|
||||
import org.junit.jupiter.api.AfterEach
|
||||
import org.junit.jupiter.api.Test
|
||||
|
||||
/**
|
||||
* Integration test to confirm that [TaskRunner] works with a real backend. Business logic is all
|
||||
@@ -49,7 +49,7 @@ class TaskRunnerRealBackendTest {
|
||||
private val taskRunner = TaskRunner(backend)
|
||||
private val queue = taskRunner.newQueue()
|
||||
|
||||
@After fun tearDown() {
|
||||
@AfterEach fun tearDown() {
|
||||
backend.shutdown()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user