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 void |
registerPropertyEditor(Class type,
PropertyEditor propertyEditor)
Register custom property editor for a given type.
|
static void |
unregisterPropertyEditor(Class type)
Unregister custom property editor for a given type
|
static void |
unregisterPropertyEditors()
Unregister all previously registered property editors
|
public static void registerPropertyEditor(Class type, PropertyEditor propertyEditor)
type - type of the propertypropertyEditor - PropertyEditor to registerpublic static void unregisterPropertyEditor(Class type)
type - type of the propertypublic static void unregisterPropertyEditors()
public static org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder postForm(String url, Object form)
url - url to post the form toform - form object to send using POST methodCopyright © 2017. All rights reserved.