org.apache.struts.mock
Class MockFormBean
java.lang.Object
org.apache.struts.action.ActionForm
org.apache.struts.mock.MockFormBean
- All Implemented Interfaces:
- java.io.Serializable
public class MockFormBean
- extends ActionForm
General purpose form bean for unit tests.
- Version:
- $Rev: 471754 $ $Date: 2005-05-07 12:45:39 -0400 (Sat, 07 May 2005)
$
- See Also:
- Serialized Form
Constructor Summary |
MockFormBean()
|
MockFormBean(boolean throwException)
|
MockFormBean(boolean throwException,
boolean returnNulls)
|
MockFormBean(boolean throwException,
boolean returnNulls,
java.lang.Double defaultDouble)
|
MockFormBean(boolean throwException,
boolean returnNulls,
java.lang.String defaultValue)
|
MockFormBean(boolean throwException,
boolean returnNulls,
java.lang.String defaultValue,
int arrayCount)
|
MockFormBean(java.lang.String stringProperty)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
booleanProperty
protected boolean booleanProperty
stringProperty
protected java.lang.String stringProperty
MockFormBean
public MockFormBean()
MockFormBean
public MockFormBean(boolean throwException,
boolean returnNulls)
MockFormBean
public MockFormBean(boolean throwException)
MockFormBean
public MockFormBean(boolean throwException,
boolean returnNulls,
java.lang.String defaultValue)
MockFormBean
public MockFormBean(java.lang.String stringProperty)
MockFormBean
public MockFormBean(boolean throwException,
boolean returnNulls,
java.lang.String defaultValue,
int arrayCount)
MockFormBean
public MockFormBean(boolean throwException,
boolean returnNulls,
java.lang.Double defaultDouble)
getJustThrowAnException
public java.lang.String getJustThrowAnException()
throws java.lang.Exception
- Throws:
java.lang.Exception
getThrowIllegalAccessException
public java.lang.Object getThrowIllegalAccessException()
throws java.lang.Exception
- Throws:
java.lang.Exception
getStringValue
public java.lang.String getStringValue()
throws java.lang.Exception
- Throws:
java.lang.Exception
getStringArray
public java.lang.String[] getStringArray()
throws java.lang.Exception
- Throws:
java.lang.Exception
getDoubleValue
public java.lang.Double getDoubleValue()
throws java.lang.Exception
- Throws:
java.lang.Exception
getBooleanProperty
public boolean getBooleanProperty()
setBooleanProperty
public void setBooleanProperty(boolean booleanProperty)
getMapProperty
public java.util.Map getMapProperty()
getMapPropertyArrayValues
public java.util.Map getMapPropertyArrayValues()
getStringProperty
public java.lang.String getStringProperty()
setStringProperty
public void setStringProperty(java.lang.String stringProperty)
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.