From c37475476248f9cf1e76337b1b8ca89e82d8ceb1 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 22 Nov 2019 08:18:08 +0100 Subject: [PATCH] 2200: An active access token must be used --- .../juplo/facebook/errors/GraphApiExceptionTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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() { -- 2.20.1