Kevin_Slade
16 years agoContributor
How can I test for a Connection refused error
I have a test case where the expected action is that the server should not be accessable and therefore a Connection refused return is expected.
The Java system reports an error as below:
Thu Jan 28 09:57:47 NZDT 2010:ERROR:Exception in request: java.net.ConnectException: Connection refused
Is there any thing I can do to trap this error or to allow the error to occur and still have the tests validate that nothing was returned, in response to the call.
Thanks
Kevin
The Java system reports an error as below:
Thu Jan 28 09:57:47 NZDT 2010:ERROR:Exception in request: java.net.ConnectException: Connection refused
Is there any thing I can do to trap this error or to allow the error to occur and still have the tests validate that nothing was returned, in response to the call.
Thanks
Kevin