I am calling an external api and receiving a runtime exception for socket timeout. Is there a way I can recreate or mock simulate this socket timeout exception by creating a mock response.
Asked
Active
Viewed 523 times
0
-
Have you read? https://stackoverflow.com/questions/31398021/how-does-mockito-timeout-work/31398908 – icrovett Nov 29 '22 at 14:30
-
1Yeah looked through. Currently looking to host an API which can simulate this exception. – Karan Nayyar Nov 29 '22 at 14:34