()
| 9 | public class ErrorsTest extends AsanaTest |
| 10 | { |
| 11 | @Test(expected = NoAuthorizationError.class) |
| 12 | public void testNotAuthorized() throws IOException |
| 13 | { |
| 14 | dispatcher.registerResponse("GET", "http://app/users/me").code(401).content("{ \"errors\": [{ \"message\": \"Not Authorized\" }]}"); |
| 15 | |
| 16 | client.users.me().execute(); |
| 17 | } |
| 18 | |
| 19 | @Test(expected = InvalidRequestError.class) |
| 20 | public void testInvalidRequest() throws IOException |
nothing calls this directly
no test coverage detected