org.apache.struts.mock
Class MockFormBean

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by 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

Field Summary
protected  boolean booleanProperty
           
protected  java.lang.String stringProperty
           
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
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)
           
 
Method Summary
 boolean getBooleanProperty()
           
 java.lang.Double getDoubleValue()
           
 java.lang.String getJustThrowAnException()
           
 java.util.Map getMapProperty()
           
 java.util.Map getMapPropertyArrayValues()
           
 java.lang.String[] getStringArray()
           
 java.lang.String getStringProperty()
           
 java.lang.String getStringValue()
           
 java.lang.Object getThrowIllegalAccessException()
           
 void setBooleanProperty(boolean booleanProperty)
           
 void setStringProperty(java.lang.String stringProperty)
           
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

booleanProperty

protected boolean booleanProperty

stringProperty

protected java.lang.String stringProperty
Constructor Detail

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)
Method Detail

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.