| 811 | } |
| 812 | |
| 813 | private static class MockRetryer implements Retryer { |
| 814 | |
| 815 | boolean tripped; |
| 816 | |
| 817 | @Override |
| 818 | public void continueOrPropagate(RetryableException e) { |
| 819 | if (tripped) { |
| 820 | throw new RuntimeException("retryer instance should never be reused"); |
| 821 | } |
| 822 | tripped = true; |
| 823 | return; |
| 824 | } |
| 825 | |
| 826 | @Override |
| 827 | public Retryer clone() { |
| 828 | return new MockRetryer(); |
| 829 | } |
| 830 | } |
| 831 | |
| 832 | @Test |
| 833 | void okIfDecodeRootCauseHasNoMessage() throws Throwable { |
nothing calls this directly
no outgoing calls
no test coverage detected