MCPcopy Create free account
hub / github.com/Asana/java-asana / testRequestHeaders

Method testRequestHeaders

src/test/java/com/asana/HeadersTest.java:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 }
20
21 @Test
22 public void testRequestHeaders() throws IOException
23 {
24 dispatcher.registerResponse("GET", "http://app/users/me").code(200).content("{}");
25 client.users.me().header("key", "value").execute();
26
27 assertEquals(Collections.singletonList("value"), dispatcher.calls.get(0).headers.get("key"));
28 }
29
30 @Test
31 public void testOverridingHeaders() throws IOException

Callers

nothing calls this directly

Calls 7

contentMethod · 0.80
codeMethod · 0.80
registerResponseMethod · 0.80
meMethod · 0.80
getMethod · 0.80
executeMethod · 0.45
headerMethod · 0.45

Tested by

no test coverage detected