mirror of
https://github.com/square/okhttp.git
synced 2025-11-24 18:41:06 +03:00
Update remaining junit4 tests (#6421)
This commit is contained in:
@@ -18,10 +18,12 @@ package okhttp3
|
||||
import org.junit.jupiter.api.extension.ExtensionContext
|
||||
import org.junit.jupiter.params.provider.Arguments
|
||||
import org.junit.jupiter.params.provider.ArgumentsProvider
|
||||
import kotlin.jvm.Throws
|
||||
|
||||
abstract class SimpleProvider: ArgumentsProvider {
|
||||
override fun provideArguments(context: ExtensionContext) =
|
||||
arguments().map { Arguments.of(it) }.stream()
|
||||
|
||||
@Throws(Exception::class)
|
||||
abstract fun arguments(): List<Any>
|
||||
}
|
||||
Reference in New Issue
Block a user