who to test for server down scenarios
My java code is communicating with a middleware and printing the result in another screen.I’ve used connectionTimeoutEcxeption to handle any connection issues and socketTimeoutException to handle read timeout Exception both of these exceptions are handled separately.
I need to make sure that if the middleware is down the exception should be caught by connectionTimeoutException. How do i test this?