-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Labels
for: external-projectFor an external project and not something we can fixFor an external project and not something we can fix
Description
Hello,
After upgrading from 2.2.6 to 2.2.7, the behavior of MockBean
has changed.
One of my tests is failing, I mock a Feign Client with @MockBean
and now with the new version I have two beans for the Feign Client in the context: the mock one (MyClient$MockitoMock$...
) and I assume the real one with a strange type (HardCodedTarget(type=MyClient, name=my-client, url=...)
).
If I give the full reference of my client in the name of the MockBean @MockBean(name = "com.MyClient")
, it works as before
Here is a small project with an example : https://gitlab.com/GuanacoBE/feignmockbean
Metadata
Metadata
Assignees
Labels
for: external-projectFor an external project and not something we can fixFor an external project and not something we can fix