How to not instantiate the feign client during tests?

200 views Asked by At

when I start my test the feign client also starts so how to not Instantiate the Feign Client During Tests ?

1

There are 1 answers

5
Antonio Miranda On

I usually use Mockito to mock the feign methods. The feign client was instantiated but the methods dont call external APIs