diff --git a/annotation-error-decoder/pom.xml b/annotation-error-decoder/pom.xml index 785edff72..562311955 100644 --- a/annotation-error-decoder/pom.xml +++ b/annotation-error-decoder/pom.xml @@ -46,7 +46,7 @@ com.squareup.okhttp3 - mockwebserver3-junit5 + mockwebserver test diff --git a/benchmark/pom.xml b/benchmark/pom.xml index 4b3d8e48f..82295f92e 100644 --- a/benchmark/pom.xml +++ b/benchmark/pom.xml @@ -66,7 +66,7 @@ com.squareup.okhttp3 - mockwebserver3-junit5 + mockwebserver io.netty diff --git a/core/pom.xml b/core/pom.xml index 44f766ca6..ea070f97f 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -34,7 +34,7 @@ com.squareup.okhttp3 - mockwebserver3-junit5 + mockwebserver test diff --git a/core/src/test/java/feign/AsyncFeignTest.java b/core/src/test/java/feign/AsyncFeignTest.java index 7eafebb1a..f008fa4a1 100644 --- a/core/src/test/java/feign/AsyncFeignTest.java +++ b/core/src/test/java/feign/AsyncFeignTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -62,8 +62,8 @@ import feign.codec.StringDecoder; import feign.querymap.BeanQueryMapEncoder; import feign.querymap.FieldQueryMapEncoder; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; import okio.Buffer; public class AsyncFeignTest { diff --git a/core/src/test/java/feign/BaseApiTest.java b/core/src/test/java/feign/BaseApiTest.java index fcec6689f..7d821ed40 100644 --- a/core/src/test/java/feign/BaseApiTest.java +++ b/core/src/test/java/feign/BaseApiTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -20,8 +20,8 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; import com.google.gson.reflect.TypeToken; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; public class BaseApiTest { diff --git a/core/src/test/java/feign/ContractWithRuntimeInjectionTest.java b/core/src/test/java/feign/ContractWithRuntimeInjectionTest.java index 2275faf98..f79edf674 100644 --- a/core/src/test/java/feign/ContractWithRuntimeInjectionTest.java +++ b/core/src/test/java/feign/ContractWithRuntimeInjectionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -25,8 +25,8 @@ import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; public class ContractWithRuntimeInjectionTest { diff --git a/core/src/test/java/feign/FeignBuilderTest.java b/core/src/test/java/feign/FeignBuilderTest.java index cab6bc1db..3f7b88afd 100644 --- a/core/src/test/java/feign/FeignBuilderTest.java +++ b/core/src/test/java/feign/FeignBuilderTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -39,8 +39,8 @@ import org.junit.jupiter.api.Test; import feign.codec.Decoder; import feign.codec.Encoder; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; public class FeignBuilderTest { diff --git a/core/src/test/java/feign/FeignTest.java b/core/src/test/java/feign/FeignTest.java index 4ec237d75..a1601e1f8 100755 --- a/core/src/test/java/feign/FeignTest.java +++ b/core/src/test/java/feign/FeignTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -63,9 +63,9 @@ import feign.codec.StringDecoder; import feign.querymap.BeanQueryMapEncoder; import feign.querymap.FieldQueryMapEncoder; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; -import mockwebserver3.SocketPolicy; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.SocketPolicy; import okio.Buffer; @SuppressWarnings("deprecation") diff --git a/core/src/test/java/feign/FeignUnderAsyncTest.java b/core/src/test/java/feign/FeignUnderAsyncTest.java index 25088a858..50d810133 100644 --- a/core/src/test/java/feign/FeignUnderAsyncTest.java +++ b/core/src/test/java/feign/FeignUnderAsyncTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -53,9 +53,9 @@ import feign.codec.StringDecoder; import feign.querymap.BeanQueryMapEncoder; import feign.querymap.FieldQueryMapEncoder; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; -import mockwebserver3.SocketPolicy; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.SocketPolicy; import okio.Buffer; @SuppressWarnings("deprecation") diff --git a/core/src/test/java/feign/LoggerTest.java b/core/src/test/java/feign/LoggerTest.java index 1ce3805df..fe3a9292a 100644 --- a/core/src/test/java/feign/LoggerTest.java +++ b/core/src/test/java/feign/LoggerTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -28,8 +28,8 @@ import org.junit.jupiter.params.provider.MethodSource; import feign.Logger.Level; import feign.Request.ProtocolVersion; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; public class LoggerTest { public final MockWebServer server = new MockWebServer(); diff --git a/core/src/test/java/feign/MethodMetadataPresenceTest.java b/core/src/test/java/feign/MethodMetadataPresenceTest.java index 0dba16995..33ea0bdc9 100644 --- a/core/src/test/java/feign/MethodMetadataPresenceTest.java +++ b/core/src/test/java/feign/MethodMetadataPresenceTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -22,8 +22,8 @@ import feign.FeignBuilderTest.TestInterface; import feign.codec.Decoder; import feign.codec.Encoder; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; public class MethodMetadataPresenceTest { diff --git a/core/src/test/java/feign/OptionsTest.java b/core/src/test/java/feign/OptionsTest.java index b7bc0be3b..a1299edac 100644 --- a/core/src/test/java/feign/OptionsTest.java +++ b/core/src/test/java/feign/OptionsTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -20,8 +20,8 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicReference; import org.junit.jupiter.api.Test; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; /** * @author pengfei.zhao diff --git a/core/src/test/java/feign/TargetTest.java b/core/src/test/java/feign/TargetTest.java index 76e03f194..e39aa5a93 100644 --- a/core/src/test/java/feign/TargetTest.java +++ b/core/src/test/java/feign/TargetTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -19,8 +19,8 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; import feign.Target.HardCodedTarget; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; @SuppressWarnings("deprecation") public class TargetTest { diff --git a/core/src/test/java/feign/assertj/MockWebServerAssertions.java b/core/src/test/java/feign/assertj/MockWebServerAssertions.java index 8ad272a31..f14625a78 100644 --- a/core/src/test/java/feign/assertj/MockWebServerAssertions.java +++ b/core/src/test/java/feign/assertj/MockWebServerAssertions.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -14,7 +14,7 @@ package feign.assertj; import org.assertj.core.api.Assertions; -import mockwebserver3.RecordedRequest; +import okhttp3.mockwebserver.RecordedRequest; public class MockWebServerAssertions extends Assertions { diff --git a/core/src/test/java/feign/assertj/RecordedRequestAssert.java b/core/src/test/java/feign/assertj/RecordedRequestAssert.java index 7ffbe5b53..5a9239433 100644 --- a/core/src/test/java/feign/assertj/RecordedRequestAssert.java +++ b/core/src/test/java/feign/assertj/RecordedRequestAssert.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -33,7 +33,7 @@ import org.assertj.core.internal.Maps; import org.assertj.core.internal.Objects; import feign.Util; -import mockwebserver3.RecordedRequest; +import okhttp3.mockwebserver.RecordedRequest; import okhttp3.Headers; public final class RecordedRequestAssert diff --git a/core/src/test/java/feign/client/AbstractClientTest.java b/core/src/test/java/feign/client/AbstractClientTest.java index afecea2c7..90ad61e0c 100644 --- a/core/src/test/java/feign/client/AbstractClientTest.java +++ b/core/src/test/java/feign/client/AbstractClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -40,9 +40,9 @@ import feign.Response; import feign.Util; import feign.assertj.MockWebServerAssertions; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; -import mockwebserver3.RecordedRequest; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.RecordedRequest; import okio.Buffer; /** diff --git a/core/src/test/java/feign/client/DefaultClientTest.java b/core/src/test/java/feign/client/DefaultClientTest.java index 34790331a..0b05ed47f 100644 --- a/core/src/test/java/feign/client/DefaultClientTest.java +++ b/core/src/test/java/feign/client/DefaultClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -32,8 +32,8 @@ import feign.Feign.Builder; import feign.RetryableException; import feign.assertj.MockWebServerAssertions; -import mockwebserver3.MockResponse; -import mockwebserver3.SocketPolicy; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.SocketPolicy; /** * Tests client-specific behavior, such as ensuring Content-Length is sent when specified. @@ -50,7 +50,7 @@ public Builder newBuilder() { @Test void retriesFailedHandshake() throws IOException, InterruptedException { - server.useHttps(TrustingSSLSocketFactory.get("localhost")); + server.useHttps(TrustingSSLSocketFactory.get("localhost"), false); server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); server.enqueue(new MockResponse()); @@ -63,7 +63,7 @@ void retriesFailedHandshake() throws IOException, InterruptedException { @Test void canOverrideSSLSocketFactory() throws IOException, InterruptedException { - server.useHttps(TrustingSSLSocketFactory.get("localhost")); + server.useHttps(TrustingSSLSocketFactory.get("localhost"), false); server.enqueue(new MockResponse()); TestInterface api = @@ -109,7 +109,7 @@ public void noResponseBodyForPatch() { @Test void canOverrideHostnameVerifier() throws IOException, InterruptedException { - server.useHttps(TrustingSSLSocketFactory.get("bad.example.com")); + server.useHttps(TrustingSSLSocketFactory.get("bad.example.com"), false); server.enqueue(new MockResponse()); TestInterface api = diff --git a/core/src/test/java/feign/optionals/OptionalDecoderTests.java b/core/src/test/java/feign/optionals/OptionalDecoderTests.java index 5952005d6..0e5c07d52 100644 --- a/core/src/test/java/feign/optionals/OptionalDecoderTests.java +++ b/core/src/test/java/feign/optionals/OptionalDecoderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -20,8 +20,8 @@ import feign.Feign; import feign.RequestLine; import feign.codec.Decoder; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; class OptionalDecoderTests { diff --git a/core/src/test/java/feign/stream/StreamDecoderTest.java b/core/src/test/java/feign/stream/StreamDecoderTest.java index e612011c4..74bd45b23 100644 --- a/core/src/test/java/feign/stream/StreamDecoderTest.java +++ b/core/src/test/java/feign/stream/StreamDecoderTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -31,8 +31,8 @@ import feign.RequestLine; import feign.Response; import feign.Util; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; @SuppressWarnings("deprecation") class StreamDecoderTest { diff --git a/googlehttpclient/pom.xml b/googlehttpclient/pom.xml index f08b3f082..603b0a0b1 100644 --- a/googlehttpclient/pom.xml +++ b/googlehttpclient/pom.xml @@ -51,7 +51,7 @@ com.squareup.okhttp3 - mockwebserver3-junit5 + mockwebserver test diff --git a/googlehttpclient/src/test/java/feign/googlehttpclient/GoogleHttpClientTest.java b/googlehttpclient/src/test/java/feign/googlehttpclient/GoogleHttpClientTest.java index c18baf063..d32e06fcf 100644 --- a/googlehttpclient/src/test/java/feign/googlehttpclient/GoogleHttpClientTest.java +++ b/googlehttpclient/src/test/java/feign/googlehttpclient/GoogleHttpClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -25,7 +25,7 @@ import feign.Util; import feign.assertj.MockWebServerAssertions; import feign.client.AbstractClientTest; -import mockwebserver3.MockResponse; +import okhttp3.mockwebserver.MockResponse; public class GoogleHttpClientTest extends AbstractClientTest { @Override diff --git a/hc5/pom.xml b/hc5/pom.xml index 0a353de4f..3bb5dbec4 100644 --- a/hc5/pom.xml +++ b/hc5/pom.xml @@ -64,7 +64,7 @@ com.squareup.okhttp3 - mockwebserver3-junit5 + mockwebserver test diff --git a/hc5/src/test/java/feign/hc5/ApacheHttp5ClientTest.java b/hc5/src/test/java/feign/hc5/ApacheHttp5ClientTest.java index dd5a96f17..54c18a206 100644 --- a/hc5/src/test/java/feign/hc5/ApacheHttp5ClientTest.java +++ b/hc5/src/test/java/feign/hc5/ApacheHttp5ClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -30,8 +30,8 @@ import feign.Request; import feign.client.AbstractClientTest; import feign.jaxrs.JAXRSContract; -import mockwebserver3.MockResponse; -import mockwebserver3.RecordedRequest; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.RecordedRequest; /** * Tests client-specific behavior, such as ensuring Content-Length is sent when specified. diff --git a/hc5/src/test/java/feign/hc5/AsyncApacheHttp5ClientTest.java b/hc5/src/test/java/feign/hc5/AsyncApacheHttp5ClientTest.java index ebf0d0f7c..013e51a19 100644 --- a/hc5/src/test/java/feign/hc5/AsyncApacheHttp5ClientTest.java +++ b/hc5/src/test/java/feign/hc5/AsyncApacheHttp5ClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -77,8 +77,8 @@ import feign.codec.StringDecoder; import feign.querymap.BeanQueryMapEncoder; import feign.querymap.FieldQueryMapEncoder; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; import okio.Buffer; public class AsyncApacheHttp5ClientTest { diff --git a/hc5/src/test/java/feign/hc5/GzipHttp5ClientTest.java b/hc5/src/test/java/feign/hc5/GzipHttp5ClientTest.java index 2d43cd9d7..ea090096e 100644 --- a/hc5/src/test/java/feign/hc5/GzipHttp5ClientTest.java +++ b/hc5/src/test/java/feign/hc5/GzipHttp5ClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -24,8 +24,8 @@ import feign.Feign.Builder; import feign.RequestLine; import feign.client.AbstractClientTest; -import mockwebserver3.MockResponse; -import mockwebserver3.RecordedRequest; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.RecordedRequest; /** * Tests that 'Content-Encoding: gzip' is handled correctly diff --git a/httpclient/pom.xml b/httpclient/pom.xml index 8a0c6b6cc..61186ecd9 100644 --- a/httpclient/pom.xml +++ b/httpclient/pom.xml @@ -71,7 +71,7 @@ com.squareup.okhttp3 - mockwebserver3-junit5 + mockwebserver test diff --git a/httpclient/src/test/java/feign/httpclient/ApacheHttpClientTest.java b/httpclient/src/test/java/feign/httpclient/ApacheHttpClientTest.java index e60ad3ffc..d1f18e080 100644 --- a/httpclient/src/test/java/feign/httpclient/ApacheHttpClientTest.java +++ b/httpclient/src/test/java/feign/httpclient/ApacheHttpClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -29,8 +29,8 @@ import feign.Request.Options; import feign.client.AbstractClientTest; import feign.jaxrs.JAXRSContract; -import mockwebserver3.MockResponse; -import mockwebserver3.RecordedRequest; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.RecordedRequest; /** * Tests client-specific behavior, such as ensuring Content-Length is sent when specified. diff --git a/hystrix/pom.xml b/hystrix/pom.xml index 39f083d44..d2afca8d4 100644 --- a/hystrix/pom.xml +++ b/hystrix/pom.xml @@ -75,7 +75,7 @@ com.squareup.okhttp3 - mockwebserver3-junit5 + mockwebserver test diff --git a/hystrix/src/test/java/feign/hystrix/FallbackFactoryTest.java b/hystrix/src/test/java/feign/hystrix/FallbackFactoryTest.java index 13b3d0b1c..5c9bd69d4 100644 --- a/hystrix/src/test/java/feign/hystrix/FallbackFactoryTest.java +++ b/hystrix/src/test/java/feign/hystrix/FallbackFactoryTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -22,8 +22,8 @@ import org.junit.jupiter.api.Test; import feign.FeignException; import feign.RequestLine; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; public class FallbackFactoryTest { diff --git a/hystrix/src/test/java/feign/hystrix/HystrixBuilderTest.java b/hystrix/src/test/java/feign/hystrix/HystrixBuilderTest.java index 73acf7e95..c8c004db8 100644 --- a/hystrix/src/test/java/feign/hystrix/HystrixBuilderTest.java +++ b/hystrix/src/test/java/feign/hystrix/HystrixBuilderTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -36,8 +36,8 @@ import feign.Target; import feign.Target.HardCodedTarget; import feign.gson.GsonDecoder; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; import rx.Completable; import rx.Observable; import rx.Single; diff --git a/hystrix/src/test/java/feign/hystrix/SetterFactoryTest.java b/hystrix/src/test/java/feign/hystrix/SetterFactoryTest.java index eeea7d328..28d9599a7 100644 --- a/hystrix/src/test/java/feign/hystrix/SetterFactoryTest.java +++ b/hystrix/src/test/java/feign/hystrix/SetterFactoryTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -23,8 +23,8 @@ import com.netflix.hystrix.HystrixCommandKey; import com.netflix.hystrix.exception.HystrixRuntimeException; import feign.RequestLine; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; public class SetterFactoryTest { diff --git a/java11/pom.xml b/java11/pom.xml index ab39023ac..db307c2e0 100644 --- a/java11/pom.xml +++ b/java11/pom.xml @@ -44,7 +44,7 @@ com.squareup.okhttp3 - mockwebserver3-junit5 + mockwebserver test diff --git a/java11/src/test/java/feign/http2client/test/Http2ClientAsyncTest.java b/java11/src/test/java/feign/http2client/test/Http2ClientAsyncTest.java index f578d2433..11f5fd2f8 100644 --- a/java11/src/test/java/feign/http2client/test/Http2ClientAsyncTest.java +++ b/java11/src/test/java/feign/http2client/test/Http2ClientAsyncTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -78,8 +78,8 @@ import feign.http2client.Http2Client; import feign.querymap.BeanQueryMapEncoder; import feign.querymap.FieldQueryMapEncoder; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; import okio.Buffer; public class Http2ClientAsyncTest { diff --git a/java11/src/test/java/feign/http2client/test/Http2ClientTest.java b/java11/src/test/java/feign/http2client/test/Http2ClientTest.java index b8bd25110..6cc197a29 100644 --- a/java11/src/test/java/feign/http2client/test/Http2ClientTest.java +++ b/java11/src/test/java/feign/http2client/test/Http2ClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ import feign.Retryer; import feign.client.AbstractClientTest; import feign.http2client.Http2Client; -import mockwebserver3.MockResponse; +import okhttp3.mockwebserver.MockResponse; /** * Tests client-specific behavior, such as ensuring Content-Length is sent when specified. diff --git a/jaxrs2/pom.xml b/jaxrs2/pom.xml index a2a3b39a0..599b57cab 100644 --- a/jaxrs2/pom.xml +++ b/jaxrs2/pom.xml @@ -97,7 +97,7 @@ com.squareup.okhttp3 - mockwebserver3-junit5 + mockwebserver test diff --git a/jaxrs2/src/test/java/feign/jaxrs2/JAXRSClientTest.java b/jaxrs2/src/test/java/feign/jaxrs2/JAXRSClientTest.java index 169eb4445..17083888b 100644 --- a/jaxrs2/src/test/java/feign/jaxrs2/JAXRSClientTest.java +++ b/jaxrs2/src/test/java/feign/jaxrs2/JAXRSClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -36,7 +36,7 @@ import feign.assertj.MockWebServerAssertions; import feign.client.AbstractClientTest; import feign.jaxrs.JAXRSContract; -import mockwebserver3.MockResponse; +import okhttp3.mockwebserver.MockResponse; /** * Tests client-specific behavior, such as ensuring Content-Length is sent when specified. diff --git a/okhttp/pom.xml b/okhttp/pom.xml index 663bfcaf5..9dee8e4e2 100644 --- a/okhttp/pom.xml +++ b/okhttp/pom.xml @@ -53,7 +53,7 @@ com.squareup.okhttp3 - mockwebserver3-junit5 + mockwebserver test diff --git a/okhttp/src/test/java/feign/okhttp/OkHttpClientAsyncTest.java b/okhttp/src/test/java/feign/okhttp/OkHttpClientAsyncTest.java index 002c0daa3..f85d96430 100644 --- a/okhttp/src/test/java/feign/okhttp/OkHttpClientAsyncTest.java +++ b/okhttp/src/test/java/feign/okhttp/OkHttpClientAsyncTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -77,8 +77,8 @@ import feign.codec.StringDecoder; import feign.querymap.BeanQueryMapEncoder; import feign.querymap.FieldQueryMapEncoder; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; import okio.Buffer; public class OkHttpClientAsyncTest { diff --git a/okhttp/src/test/java/feign/okhttp/OkHttpClientTest.java b/okhttp/src/test/java/feign/okhttp/OkHttpClientTest.java index be1b78694..e5b1f80f4 100644 --- a/okhttp/src/test/java/feign/okhttp/OkHttpClientTest.java +++ b/okhttp/src/test/java/feign/okhttp/OkHttpClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ import feign.Util; import feign.assertj.MockWebServerAssertions; import feign.client.AbstractClientTest; -import mockwebserver3.MockResponse; +import okhttp3.mockwebserver.MockResponse; /** Tests client-specific behavior, such as ensuring Content-Length is sent when specified. */ public class OkHttpClientTest extends AbstractClientTest { diff --git a/pom.xml b/pom.xml index 77af99c70..4e4bd17f3 100644 --- a/pom.xml +++ b/pom.xml @@ -84,7 +84,7 @@ ${project.basedir} - 5.0.0-alpha.11 + 4.12.0 33.0.0-jre 1.44.1 2.10.1 diff --git a/reactive/pom.xml b/reactive/pom.xml index 3f1dcb85e..47c183fef 100644 --- a/reactive/pom.xml +++ b/reactive/pom.xml @@ -92,7 +92,7 @@ com.squareup.okhttp3 - mockwebserver3-junit5 + mockwebserver test diff --git a/reactive/src/test/java/feign/reactive/ReactiveFeignIntegrationTest.java b/reactive/src/test/java/feign/reactive/ReactiveFeignIntegrationTest.java index ed2d1f9ce..c889ae26e 100644 --- a/reactive/src/test/java/feign/reactive/ReactiveFeignIntegrationTest.java +++ b/reactive/src/test/java/feign/reactive/ReactiveFeignIntegrationTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -58,8 +58,8 @@ import feign.jackson.JacksonEncoder; import feign.jaxrs.JAXRSContract; import io.reactivex.Flowable; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; diff --git a/ribbon/pom.xml b/ribbon/pom.xml index ad291805c..33019b1d6 100644 --- a/ribbon/pom.xml +++ b/ribbon/pom.xml @@ -77,7 +77,7 @@ com.squareup.okhttp3 - mockwebserver3-junit5 + mockwebserver test diff --git a/ribbon/src/test/java/feign/ribbon/LoadBalancingTargetTest.java b/ribbon/src/test/java/feign/ribbon/LoadBalancingTargetTest.java index 83b401202..d0a246269 100644 --- a/ribbon/src/test/java/feign/ribbon/LoadBalancingTargetTest.java +++ b/ribbon/src/test/java/feign/ribbon/LoadBalancingTargetTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -21,8 +21,8 @@ import org.junit.jupiter.api.Test; import feign.Feign; import feign.RequestLine; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; public class LoadBalancingTargetTest { diff --git a/ribbon/src/test/java/feign/ribbon/RibbonClientTest.java b/ribbon/src/test/java/feign/ribbon/RibbonClientTest.java index 83b26d49f..3df877ed2 100644 --- a/ribbon/src/test/java/feign/ribbon/RibbonClientTest.java +++ b/ribbon/src/test/java/feign/ribbon/RibbonClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 The Feign Authors + * Copyright 2012-2024 The Feign Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -41,9 +41,9 @@ import feign.RetryableException; import feign.Retryer; import feign.client.TrustingSSLSocketFactory; -import mockwebserver3.MockResponse; -import mockwebserver3.MockWebServer; -import mockwebserver3.SocketPolicy; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.SocketPolicy; @Disabled("inconsistent, deprecated toolset") public class RibbonClientTest { @@ -225,7 +225,7 @@ void hTTPSViaRibbon() { Client trustSSLSockets = new Client.Default(TrustingSSLSocketFactory.get(), null); - server1.useHttps(TrustingSSLSocketFactory.get("localhost")); + server1.useHttps(TrustingSSLSocketFactory.get("localhost"), false); server1.enqueue(new MockResponse().setBody("success!")); getConfigInstance().setProperty(serverListKey(), hostAndPort(server1.url("").url()));