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

Method testServerError

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

Source from the content-addressed store, hash-verified

25 }
26
27 @Test(expected = ServerError.class)
28 public void testServerError() throws IOException
29 {
30 dispatcher.registerResponse("GET", "http://app/users/me").code(500).content("{ \"errors\": [ { \"message\": \"Server Error\", \"phrase\": \"6 sad squid snuggle softly\" } ] }");
31
32 client.users.me().option("max_retries", 0).execute();
33 }
34
35 @Test(expected = NotFoundError.class)
36 public void testNotFound() throws IOException

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected