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

Method testGetNamedParameters

src/test/java/com/asana/ClientTest.java:97–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 }
96
97 @Test
98 public void testGetNamedParameters() throws IOException
99 {
100 dispatcher.registerResponse("GET", "http://app/tasks?workspace=14916&assignee=me").code(200).content("{ \"data\": [{ \"gid\": \"1\" }]}");
101
102 Collection<Task> result = client.tasks.findAll()
103 .query("workspace", "14916")
104 .query("assignee", "me")
105 .execute();
106 assertEquals("1", result.iterator().next().gid);
107 }
108
109 @Test
110 public void testPostNamedParameters() throws IOException

Callers

nothing calls this directly

Calls 8

contentMethod · 0.80
codeMethod · 0.80
registerResponseMethod · 0.80
executeMethod · 0.45
queryMethod · 0.45
findAllMethod · 0.45
nextMethod · 0.45
iteratorMethod · 0.45

Tested by

no test coverage detected