lundi 20 janvier 2020

How to mock ConnectTimeoutException with wiremock

I am using WireMock to test my application, and have set a Connection timeout to my rest template. I have done research and tried to mock the timeout using

.withFixedDelay(timeout), however after trying this it does not throw a ConnectTimeoutException.

My question is How can I test timeout using WireMock.

Aucun commentaire:

Enregistrer un commentaire