@Test public void shouldHandleCallback() { HttpHeaders headers = mock(HttpHeaders.class); HttpServletRequest request = mock(HttpServletRequest.class); HttpServletResponse response = mock(HttpServletResponse.class); JsonValue jsonPostBody = mock(JsonValue.class); ConfirmationCallback originalConfirmationCallback = mock(ConfirmationCallback.class); ConfirmationCallback confirmationCallback = restAuthConfirmationCallbackHandler.handle(headers, request, response, jsonPostBody, originalConfirmationCallback); assertEquals(originalConfirmationCallback, confirmationCallback); }
public ConfirmationCallback handle(HttpHeaders headers, HttpServletRequest request, HttpServletResponse response, JsonValue postBody, ConfirmationCallback originalCallback) { return originalCallback; }
RestAuthConfirmationCallbackHandler extends AbstractRestAuthCallbackHandler<ConfirmationCallback> { public ConfirmationCallback handle(HttpHeaders headers, HttpServletRequest request, HttpServletResponse response, JsonValue postBody, ConfirmationCallback originalCallback) { return originalCallback; } }
RestAuthConfirmationCallbackHandler extends AbstractRestAuthCallbackHandler<ConfirmationCallback> { public ConfirmationCallback handle(HttpHeaders headers, HttpServletRequest request, HttpServletResponse response, JsonValue postBody, ConfirmationCallback originalCallback) { return originalCallback; }  }
RestAuthConfirmationCallbackHandler extends AbstractRestAuthCallbackHandler<ConfirmationCallback> { public ConfirmationCallback handle(HttpHeaders headers, HttpServletRequest request, HttpServletResponse response, JsonValue postBody, ConfirmationCallback originalCallback) { return originalCallback; }  ConfirmationCallback handle(HttpHeaders headers, HttpServletRequest request, HttpServletResponse response,
            JsonValue postBody, ConfirmationCallback originalCallback); String getCallbackClassName(); JsonValue convertToJson(ConfirmationCallback callback, int index); ConfirmationCallback convertFromJson(ConfirmationCallback callback, JsonValue jsonCallback); }
RestAuthConfirmationCallbackHandler extends AbstractRestAuthCallbackHandler<ConfirmationCallback> { public ConfirmationCallback handle(HttpHeaders headers, HttpServletRequest request, HttpServletResponse response, JsonValue postBody, ConfirmationCallback originalCallback) { return originalCallback; }  ConfirmationCallback handle(HttpHeaders headers, HttpServletRequest request, HttpServletResponse response,
            JsonValue postBody, ConfirmationCallback originalCallback); String getCallbackClassName(); JsonValue convertToJson(ConfirmationCallback callback, int index); ConfirmationCallback convertFromJson(ConfirmationCallback callback, JsonValue jsonCallback);  }