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

Class MockRetryer

core/src/test/java/feign/FeignTest.java:793–810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected