From 21986f5e92e3cdcdec16bce9ba4dee5468570fc1 Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Thu, 14 May 2020 12:14:31 +0200 Subject: [PATCH] Upgrade Feign. Fixes gh-333. --- .../cloud/openfeign/FeignClientErrorDecoderTests.java | 4 +++- spring-cloud-openfeign-dependencies/pom.xml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/FeignClientErrorDecoderTests.java b/spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/FeignClientErrorDecoderTests.java index d1cc5bc2..3e42591f 100644 --- a/spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/FeignClientErrorDecoderTests.java +++ b/spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/FeignClientErrorDecoderTests.java @@ -90,7 +90,9 @@ public class FeignClientErrorDecoderTests { Map dispatch = (Map) ReflectionTestUtils .getField(invocationHandler, "dispatch"); Method key = new ArrayList<>(dispatch.keySet()).get(0); - return ReflectionTestUtils.getField(dispatch.get(key), "errorDecoder"); + return ReflectionTestUtils.getField( + ReflectionTestUtils.getField(dispatch.get(key), "asyncResponseHandler"), + "errorDecoder"); } @Configuration(proxyBeanMethods = false) diff --git a/spring-cloud-openfeign-dependencies/pom.xml b/spring-cloud-openfeign-dependencies/pom.xml index 6d56db7a..9550c833 100644 --- a/spring-cloud-openfeign-dependencies/pom.xml +++ b/spring-cloud-openfeign-dependencies/pom.xml @@ -15,7 +15,7 @@ spring-cloud-openfeign-dependencies Spring Cloud OpenFeign Dependencies - 10.7.4 + 10.10.1 3.8.0