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

Method normalResponseTest

core/src/test/java/feign/OptionsTest.java:66–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 }
65
66 @Test
67 void normalResponseTest() {
68 final MockWebServer server = new MockWebServer();
69 server.enqueue(new MockResponse().setBody("foo").setBodyDelay(3, TimeUnit.SECONDS));
70
71 final OptionsInterface api =
72 Feign.builder()
73 .options(new Request.Options(1000, 1000))
74 .target(OptionsInterface.class, server.url("/").toString());
75
76 assertThat(api.get(new Request.Options(1000, 4 * 1000))).isEqualTo("foo");
77 }
78
79 @Test
80 void normalResponseForChildOptionsTest() {

Callers

nothing calls this directly

Calls 7

builderMethod · 0.95
getMethod · 0.95
urlMethod · 0.65
targetMethod · 0.45
optionsMethod · 0.45
toStringMethod · 0.45
assertThatMethod · 0.45

Tested by

no test coverage detected