1
0
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:
Yuri Schimke
2020-11-14 17:21:04 +00:00
committed by GitHub
parent 5bd0a88ff3
commit 4036fa55b7
8 changed files with 82 additions and 104 deletions

View File

@@ -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>
}