Package org.apache.struts.mock
Class MockFormBean
java.lang.Object
org.apache.struts.action.ActionForm
org.apache.struts.mock.MockFormBean
- All Implemented Interfaces:
Serializable
public class MockFormBean
extends org.apache.struts.action.ActionForm
General purpose form bean for unit tests.
- Version:
- $Rev$ $Date: 2005-05-07 12:45:39 -0400 (Sat, 07 May 2005) $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected List<org.apache.struts.upload.FormFile> protected StringFields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet -
Constructor Summary
ConstructorsConstructorDescriptionMockFormBean(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) -
Method Summary
Modifier and TypeMethodDescriptionbooleanList<org.apache.struts.upload.FormFile> getFiles()String[]voidsetBooleanProperty(boolean booleanProperty) voidvoidsetStringProperty(String stringProperty) Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate
-
Field Details
-
booleanProperty
protected boolean booleanProperty -
stringProperty
-
files
-
-
Constructor Details
-
MockFormBean
public MockFormBean() -
MockFormBean
public MockFormBean(boolean throwException, boolean returnNulls) -
MockFormBean
public MockFormBean(boolean throwException) -
MockFormBean
-
MockFormBean
-
MockFormBean
public MockFormBean(boolean throwException, boolean returnNulls, String defaultValue, int arrayCount) -
MockFormBean
-
-
Method Details
-
getJustThrowAnException
- Throws:
Exception
-
getThrowIllegalAccessException
- Throws:
Exception
-
getStringValue
- Throws:
Exception
-
getStringArray
- Throws:
Exception
-
getDoubleValue
- Throws:
Exception
-
getBooleanProperty
public boolean getBooleanProperty() -
setBooleanProperty
public void setBooleanProperty(boolean booleanProperty) -
getMapProperty
-
getMapPropertyArrayValues
-
getStringProperty
-
setStringProperty
-
setFiles
-
getFiles
-