()
| 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 |