Example usage for org.springframework.mock.web MockHttpServletRequest addParameters

List of usage examples for org.springframework.mock.web MockHttpServletRequest addParameters

Introduction

In this page you can find the example usage for org.springframework.mock.web MockHttpServletRequest addParameters.

Prototype

public void addParameters(Map<String, ?> params) 

Source Link

Document

Add all provided parameters without replacing any existing values.

Usage

From source file:org.pac4j.core.client.ClientIT.java

protected void updateContextForAuthn(WebClient webClient, HtmlPage redirectionPage, J2EContext context)
        throws Exception {
    final String callbackUrl = getCallbackUrl(webClient, redirectionPage);
    final MockHttpServletRequest request = (MockHttpServletRequest) context.getRequest();
    request.addParameters(TestsHelper.getParametersFromUrl(callbackUrl));
}