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