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

Class MockTarget

mock/src/main/java/feign/mock/MockTarget.java:22–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20import feign.Target;
21
22public class MockTarget<E> implements Target<E> {
23
24 private final Class<E> type;
25
26 public MockTarget(Class<E> type) {
27 this.type = type;
28 }
29
30 @Override
31 public Class<E> type() {
32 return type;
33 }
34
35 @Override
36 public String name() {
37 return type.getSimpleName();
38 }
39
40 @Override
41 public String url() {
42 return "";
43 }
44
45 @Override
46 public Request apply(RequestTemplate input) {
47 input.target(url());
48 return input.request();
49 }
50}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected