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