-
Notifications
You must be signed in to change notification settings - Fork 799
Mock FeignClient not replacing the application Application FeignClient in Spring Boot 2.3.3.RELEASE #404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello, @DoniciMarius. Please provide a minimal, complete, verifiable example that reproduces the issue (preferably as a link to GH project). |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Maybe i will fix it. |
Hi @mark4z , please feel free to submit a PR. |
@OlgaMaciaszek It's fixed on feign 2.2.3.RELEASE, so no need PR anymore. |
it does not fix yet, ive got same issue. What spring boot starter we should to use to awoid this issue? |
Hello, @apb12, please provide a minimal, complete, verifiable example that reproduces the issue (preferably as a link to GH project). |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
After upgrading from Spring boot 2.2.2 to 2.3.3 the feign client in tests are not replaced.
The mocked bean seems to be instantiated but it does not replace the actual FeignClient provided by the application.
spring-cloud-starter-openfeign version : 2.2.5.RELEASE
spring boot version: 2.3.3.RELEASE
spring version: 5.2.8.RELEASE
I have found the issues related to this saying that is already fixed but for me it doesn't seem to replace the actual FeignClient.
#336
#337
And for the ApplicationTestConfig I have something like this
A work-around I have found is to set the FeignClient(primary = false) and it seems to be working properly but I don't think that is a solution.
Any ideas if this is still a problem in 2.3.3?
The text was updated successfully, but these errors were encountered: