| 791 | } |
| 792 | |
| 793 | private static class MockRetryer implements Retryer { |
| 794 | |
| 795 | boolean tripped; |
| 796 | |
| 797 | @Override |
| 798 | public void continueOrPropagate(RetryableException e) { |
| 799 | if (tripped) { |
| 800 | throw new RuntimeException("retryer instance should never be reused"); |
| 801 | } |
| 802 | tripped = true; |
| 803 | return; |
| 804 | } |
| 805 | |
| 806 | @Override |
| 807 | public Retryer clone() { |
| 808 | return new MockRetryer(); |
| 809 | } |
| 810 | } |
| 811 | |
| 812 | @Test |
| 813 | void okIfDecodeRootCauseHasNoMessage() throws Exception { |
nothing calls this directly
no outgoing calls
no test coverage detected