public class MockFormBean extends ActionForm
General purpose form bean for unit tests.
Modifier and Type | Field and Description |
---|---|
protected boolean |
booleanProperty |
protected String |
stringProperty |
multipartRequestHandler, servlet
Constructor and Description |
---|
MockFormBean() |
MockFormBean(boolean throwException) |
MockFormBean(boolean throwException,
boolean returnNulls) |
MockFormBean(boolean throwException,
boolean returnNulls,
Double defaultDouble) |
MockFormBean(boolean throwException,
boolean returnNulls,
String defaultValue) |
MockFormBean(boolean throwException,
boolean returnNulls,
String defaultValue,
int arrayCount) |
MockFormBean(String stringProperty) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanProperty() |
Double |
getDoubleValue() |
String |
getJustThrowAnException() |
Map |
getMapProperty() |
Map |
getMapPropertyArrayValues() |
String[] |
getStringArray() |
String |
getStringProperty() |
String |
getStringValue() |
Object |
getThrowIllegalAccessException() |
void |
setBooleanProperty(boolean booleanProperty) |
void |
setStringProperty(String stringProperty) |
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate
protected boolean booleanProperty
protected String stringProperty
public MockFormBean()
public MockFormBean(boolean throwException, boolean returnNulls)
public MockFormBean(boolean throwException)
public MockFormBean(boolean throwException, boolean returnNulls, String defaultValue)
public MockFormBean(String stringProperty)
public MockFormBean(boolean throwException, boolean returnNulls, String defaultValue, int arrayCount)
public MockFormBean(boolean throwException, boolean returnNulls, Double defaultDouble)
public Object getThrowIllegalAccessException() throws Exception
Exception
public boolean getBooleanProperty()
public void setBooleanProperty(boolean booleanProperty)
public Map getMapProperty()
public Map getMapPropertyArrayValues()
public String getStringProperty()
public void setStringProperty(String stringProperty)
Copyright © 2000–2016 Apache Software Foundation. All rights reserved.