diff --git a/.travis.yml b/.travis.yml
index 681d088f..584c1ddd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,7 @@
language: java
jdk:
- oraclejdk8
+ - openjdk11
after_success:
- bash <(curl -s https://codecov.io/bash)
\ No newline at end of file
diff --git a/benchmarks/pom.xml b/benchmarks/pom.xml
index 85e07896..fbaebf62 100644
--- a/benchmarks/pom.xml
+++ b/benchmarks/pom.xml
@@ -73,8 +73,18 @@
2.1.10
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter-params
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter-engine
test
diff --git a/benchmarks/src/test/java/com/salesforce/reactivegrpc/jmh/BenchmarkTest.java b/benchmarks/src/test/java/com/salesforce/reactivegrpc/jmh/BenchmarkTest.java
index 077c41dc..4ce98e13 100644
--- a/benchmarks/src/test/java/com/salesforce/reactivegrpc/jmh/BenchmarkTest.java
+++ b/benchmarks/src/test/java/com/salesforce/reactivegrpc/jmh/BenchmarkTest.java
@@ -6,35 +6,25 @@
*/
package com.salesforce.reactivegrpc.jmh;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import java.util.Collections;
+import java.util.stream.Stream;
+
+import jdk.nashorn.internal.ir.annotations.Ignore;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
import org.openjdk.jmh.results.RunResult;
import org.openjdk.jmh.runner.BenchmarkList;
-import org.openjdk.jmh.runner.BenchmarkListEntry;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.List;
-
-@RunWith(Parameterized.class)
public class BenchmarkTest {
- private final String benchmark;
-
-
- public BenchmarkTest(String benchmark, String name) {
- this.benchmark = benchmark;
- }
-
@Test
@Ignore
- public void run() throws RunnerException {
+ @MethodSource("data")
+ public void run(String benchmark, String name) throws RunnerException {
Options opt = new OptionsBuilder()
.include(benchmark)
.shouldFailOnError(true)
@@ -43,16 +33,18 @@ public void run() throws RunnerException {
RunResult result = runner.runSingle();
}
- @Parameterized.Parameters(name = "{1}")
- public static Collection