Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add caller stack information in test
TestRequestSender now shows caller stack when operation failed. Previously, when operation failed, the output only showed operation response failure. It didn't show any information about where the call has originated. In this change, the caller stack information is displayed as primary stacktrace and the failure response stack is showed in suppressed exception stacktrace. For "sendAndWaitFailure", when operation was successful, the displayed exception is now the caller stack information. Operation failure log: Before: ..IllegalAccessError: forbidden at ..Operation.fail(Operation.java:1102) at ..ServiceHost.loadServiceState(ServiceHost.java:2567) .... New: ..RuntimeException: Received Failure response. (See suppressed exception for detail) at ..TestRequestSender.sendAndWait(TestRequestSender.java:192) at ..TestRequestSender.sendAndWait(TestRequestSender.java:175) at ..TestExampleWithMultiNode.authentication(TestExampleWithMultiNode.java:257) ... Suppressed: java.lang.IllegalAccessError: forbidden at ..Operation.fail(Operation.java:1102) at ..loadServiceState(ServiceHost.java:2567) ... https://www.pivotaltracker.com/story/show/127395667 Change-Id: I3c860695f25df659067f4233cc9f48023eeb0eca
- Loading branch information