@Test public void mapAndDecodeExecutesMapFunction() throws Throwable { server.enqueue(new MockResponse().setBody("response!")); TestInterfaceAsync api = AsyncFeign.asyncBuilder().mapAndDecode(upperCaseResponseMapper(), new StringDecoder()) .target(TestInterfaceAsync.class, "http: assertEquals("RESPONSE!", unwrap(api.post())); }
public static <C> AsyncBuilder<C> asyncBuilder() { return new AsyncBuilder<>(); }
AsyncFeign extends Feign { public static <C> AsyncBuilder<C> asyncBuilder() { return new AsyncBuilder<>(); } }
AsyncFeign extends Feign { public static <C> AsyncBuilder<C> asyncBuilder() { return new AsyncBuilder<>(); } protected  AsyncFeign(AsyncBuilder<C> asyncBuilder); }
AsyncFeign extends Feign { public static <C> AsyncBuilder<C> asyncBuilder() { return new AsyncBuilder<>(); } protected  AsyncFeign(AsyncBuilder<C> asyncBuilder); static AsyncBuilder<C> asyncBuilder(); @Override T newInstance(Target<T> target); T newInstance(Target<T> target, C context); }
AsyncFeign extends Feign { public static <C> AsyncBuilder<C> asyncBuilder() { return new AsyncBuilder<>(); } protected  AsyncFeign(AsyncBuilder<C> asyncBuilder); static AsyncBuilder<C> asyncBuilder(); @Override T newInstance(Target<T> target); T newInstance(Target<T> target, C context);  }