| 20 | import feign.Target; |
| 21 | |
| 22 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected