From: Kai Moritz Date: Fri, 22 Nov 2019 07:18:08 +0000 (+0100) Subject: 2200: An active access token must be used X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=c37475476248f9cf1e76337b1b8ca89e82d8ceb1;p=facebook-errors 2200: An active access token must be used --- diff --git a/src/test/java/de/juplo/facebook/errors/GraphApiExceptionTest.java b/src/test/java/de/juplo/facebook/errors/GraphApiExceptionTest.java index f8bd9aa..9d55e85 100644 --- a/src/test/java/de/juplo/facebook/errors/GraphApiExceptionTest.java +++ b/src/test/java/de/juplo/facebook/errors/GraphApiExceptionTest.java @@ -245,6 +245,17 @@ public class GraphApiExceptionTest LOG.debug("{}", e.toString()); } + @Test + public void testError2200() + { + String str ="{\"error\":{\"message\":\"An active access token must be used to query information about the current user.\",\"type\":\"OAuthException\",\"code\":2500,\"fbtrace_id\":\"AUmMHJlVYvTbQrBT11Dk104\"}}"; + byte[] message = str.getBytes(); + GraphApiException e = GraphApiException.create (status, headers, message); + + assertTrue(e.getClass().equals(ActiveAccessTokenMissingException.class)); + LOG.debug("{}", e.toString()); + } + @Test public void testUnmappedError() {