mercredi 22 août 2018

Mock connection problems/errors/exceptions

I want to simulate scenario that app when connecting to mock gets exception (for example javax.net.ssl). I know how to construct valid or invalid response. I do not know how to response with specific exception that would be interpreted by CXF just like of exception.

In simple words: I want to code sample(or tool) that when asked (by get or SOAP) will return java connection exception.

Aucun commentaire:

Enregistrer un commentaire