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