use of es.home.example.feignexample.customize.CustomErrorDecode in project PostExamples by deesebc.
the class FeignRetryableTest method setup.
@BeforeAll
public static void setup() {
bookClient = Feign.builder().client(new OkHttpClient()).encoder(new GsonEncoder()).decoder(new GsonDecoder()).logger(new Slf4jLogger(BookClient.class)).logLevel(Logger.Level.FULL).retryer(new feign.Retryer.Default(100, 1000, 3)).errorDecoder(new CustomErrorDecode()).options(new Request.Options(2, TimeUnit.SECONDS, 4, TimeUnit.SECONDS, true)).target(BookClient.class, "http://localhost:57005/api/books");
wireMockServer = new WireMockServer(WireMockConfiguration.wireMockConfig().withRootDirectory(FOLDER).port(57005).notifier(new ConsoleNotifier(true)));
wireMockServer.start();
}
Aggregations