diff --git a/.mvn/jvm.config b/.mvn/jvm.config
index 0e7dabeff..c79df8879 100644
--- a/.mvn/jvm.config
+++ b/.mvn/jvm.config
@@ -1 +1 @@
--Xmx1024m -XX:CICompilerCount=1 -XX:TieredStopAtLevel=1 -Djava.security.egd=file:/dev/./urandom
\ No newline at end of file
+-XX:CICompilerCount=1 -XX:TieredStopAtLevel=1 -Djava.security.egd=file:/dev/./urandom
diff --git a/annotation-error-decoder/pom.xml b/annotation-error-decoder/pom.xml
index 76f96f625..ed064f8e6 100644
--- a/annotation-error-decoder/pom.xml
+++ b/annotation-error-decoder/pom.xml
@@ -46,7 +46,12 @@
com.squareup.okhttp3
- mockwebserver
+ mockwebserver3-junit5
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/annotation-error-decoder/src/test/java/feign/error/AbstractAnnotationErrorDecoderTest.java b/annotation-error-decoder/src/test/java/feign/error/AbstractAnnotationErrorDecoderTest.java
index f7abdd15a..fcf501e9d 100644
--- a/annotation-error-decoder/src/test/java/feign/error/AbstractAnnotationErrorDecoderTest.java
+++ b/annotation-error-decoder/src/test/java/feign/error/AbstractAnnotationErrorDecoderTest.java
@@ -35,7 +35,7 @@ Response testResponse(int status) {
}
Response testResponse(int status, String body) {
- return testResponse(status, body, new HashMap>());
+ return testResponse(status, body, new HashMap<>());
}
Response testResponse(int status, String body, Map> headers) {
diff --git a/annotation-error-decoder/src/test/java/feign/error/AnnotationErrorDecoderAnnotationInheritanceTest.java b/annotation-error-decoder/src/test/java/feign/error/AnnotationErrorDecoderAnnotationInheritanceTest.java
index f56b6ce89..ffdfd12b5 100644
--- a/annotation-error-decoder/src/test/java/feign/error/AnnotationErrorDecoderAnnotationInheritanceTest.java
+++ b/annotation-error-decoder/src/test/java/feign/error/AnnotationErrorDecoderAnnotationInheritanceTest.java
@@ -18,13 +18,9 @@
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Arrays;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
-import org.junit.runners.Parameterized.Parameter;
-import org.junit.runners.Parameterized.Parameters;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.MethodSource;
-@RunWith(Parameterized.class)
public class AnnotationErrorDecoderAnnotationInheritanceTest
extends AbstractAnnotationErrorDecoderTest<
AnnotationErrorDecoderAnnotationInheritanceTest.TestClientInterfaceWithWithMetaAnnotation> {
@@ -33,8 +29,6 @@ public Class interfaceAtTest() {
return TestClientInterfaceWithWithMetaAnnotation.class;
}
- @Parameters(
- name = "{0}: When error code ({1}) on method ({2}) should return exception type ({3})")
public static Iterable