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

Method testNotFound

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

Source from the content-addressed store, hash-verified

33 }
34
35 @Test(expected = NotFoundError.class)
36 public void testNotFound() throws IOException
37 {
38 dispatcher.registerResponse("GET", "http://app/users/me").code(404).content("{ \"errors\": [ { \"message\": \"user: Unknown object: 1234\" } ] }");
39
40 client.users.me().execute();
41 }
42
43 @Test(expected = ForbiddenError.class)
44 public void testForbidden() 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