@Test (expectedExceptions = RestAuthException.class) public void shouldFailConvertToJson() { restAuthRedirectCallbackHandler.convertToJson(null, 1); fail(); }
public JsonValue convertToJson(RedirectCallback callback, int index) { throw new RestAuthException(Response.Status.INTERNAL_SERVER_ERROR, new UnsupportedOperationException( "RedirectCallbacks cannot be converted to JSON")); }
RestAuthRedirectCallbackHandler extends AbstractRestAuthCallbackHandler<RedirectCallback> { public JsonValue convertToJson(RedirectCallback callback, int index) { throw new RestAuthException(Response.Status.INTERNAL_SERVER_ERROR, new UnsupportedOperationException( "RedirectCallbacks cannot be converted to JSON")); } }
RestAuthRedirectCallbackHandler extends AbstractRestAuthCallbackHandler<RedirectCallback> { public JsonValue convertToJson(RedirectCallback callback, int index) { throw new RestAuthException(Response.Status.INTERNAL_SERVER_ERROR, new UnsupportedOperationException( "RedirectCallbacks cannot be converted to JSON")); } RestAuthRedirectCallbackHandler(RedirectCallbackHandler redirectCallbackHandler); }
RestAuthRedirectCallbackHandler extends AbstractRestAuthCallbackHandler<RedirectCallback> { public JsonValue convertToJson(RedirectCallback callback, int index) { throw new RestAuthException(Response.Status.INTERNAL_SERVER_ERROR, new UnsupportedOperationException( "RedirectCallbacks cannot be converted to JSON")); } RestAuthRedirectCallbackHandler(RedirectCallbackHandler redirectCallbackHandler); boolean updateCallbackFromRequest(HttpHeaders headers, HttpServletRequest request,
            HttpServletResponse response, RedirectCallback callback); RedirectCallback handle(HttpHeaders headers, HttpServletRequest request, HttpServletResponse response,
            JsonValue postBody, RedirectCallback originalCallback); String getCallbackClassName(); JsonValue convertToJson(RedirectCallback callback, int index); RedirectCallback convertFromJson(RedirectCallback callback, JsonValue jsonCallback); }
RestAuthRedirectCallbackHandler extends AbstractRestAuthCallbackHandler<RedirectCallback> { public JsonValue convertToJson(RedirectCallback callback, int index) { throw new RestAuthException(Response.Status.INTERNAL_SERVER_ERROR, new UnsupportedOperationException( "RedirectCallbacks cannot be converted to JSON")); } RestAuthRedirectCallbackHandler(RedirectCallbackHandler redirectCallbackHandler); boolean updateCallbackFromRequest(HttpHeaders headers, HttpServletRequest request,
            HttpServletResponse response, RedirectCallback callback); RedirectCallback handle(HttpHeaders headers, HttpServletRequest request, HttpServletResponse response,
            JsonValue postBody, RedirectCallback originalCallback); String getCallbackClassName(); JsonValue convertToJson(RedirectCallback callback, int index); RedirectCallback convertFromJson(RedirectCallback callback, JsonValue jsonCallback);  }