public class MockMvcRequestBuilderUtils extends Object
MockMvcRequestBuilders| Modifier and Type | Method and Description |
|---|---|
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 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 © 2018. All rights reserved.