public class MockMvcRequestBuilderUtils extends Object
MockMvcRequestBuilders| Modifier and Type | Class and Description |
|---|---|
static class |
MockMvcRequestBuilderUtils.FormRequestPostProcessor
Implementation of
RequestPostProcessor that adds form parameters to the request before execution. |
| Modifier and Type | Method and Description |
|---|---|
static MockMvcRequestBuilderUtils.FormRequestPostProcessor |
form(Object form) |
static org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder |
postForm(String url,
Object form)
Post a form to the given url.
|
static org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder |
putForm(String url,
Object form)
Put a form to the given url.
|
static void |
registerPropertyEditor(Class type,
PropertyEditor propertyEditor)
Register custom property editor for a given type.
|
public static void registerPropertyEditor(Class type, PropertyEditor propertyEditor)
type - type of the propertypropertyEditor - PropertyEditor to registerpublic static MockMvcRequestBuilderUtils.FormRequestPostProcessor form(Object form)
public static org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder postForm(String url, Object form)
url - the URL to post the form toform - form object to send using POST methodpublic static org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder putForm(String url, Object form)
url - the URL to put the form toform - form object to send using PUT methodCopyright © 2020. All rights reserved.