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