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

Method enrichClient

core/src/test/java/feign/CapabilityTest.java:56–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 }
55
56 @Test
57 void enrichClient() {
58 Client enriched =
59 (Client)
60 Capability.enrich(
61 new DefaultClient(null, null),
62 Client.class,
63 Arrays.asList(
64 new Capability() {
65 @Override
66 public Client enrich(Client client) {
67 return new AClient(client);
68 }
69 },
70 new Capability() {
71 @Override
72 public Client enrich(Client client) {
73 return new BClient(client);
74 }
75 }));
76
77 assertThat(enriched).isInstanceOf(BClient.class);
78 }
79}

Callers

nothing calls this directly

Calls 3

enrichMethod · 0.95
asListMethod · 0.45
assertThatMethod · 0.45

Tested by

no test coverage detected