MCPcopy Index your code
hub / github.com/OpenFeign/feign / MockRetryer

Class MockRetryer

core/src/test/java/feign/AsyncFeignTest.java:813–830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected