Arquillian provides a component model for integration tests, which includes dependency injection and container life cycle management. Instead of managing a runtime in your test, Arquillian brings your test to the runtime.
If response.sendError fails the first exception e will be lost entirely and all the developer will see is the reason why response.sendErrorfailed. A small change will ensure the data from e and e2 are both available when looking at server log files.
Changes proposed in this pull request:
A simple addSuppresed statement to prevent a useful exception from being unreported
Short description of what this resolves:
If
response.sendError
fails the first exceptione
will be lost entirely and all the developer will see is the reason whyresponse.sendError
failed. A small change will ensure the data frome
ande2
are both available when looking at server log files.Changes proposed in this pull request: