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

Method testInvalidRequest

src/test/java/com/asana/ErrorsTest.java:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 }
18
19 @Test(expected = InvalidRequestError.class)
20 public void testInvalidRequest() throws IOException
21 {
22 dispatcher.registerResponse("GET", "http://app/users/me").code(400).content("{ \"errors\": [{ \"message\": \"Missing input\" }] }");
23
24 client.users.me().execute();
25 }
26
27 @Test(expected = ServerError.class)
28 public void testServerError() throws IOException

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected