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 Details

    • booleanProperty

      protected boolean booleanProperty
    • stringProperty

      protected String stringProperty
    • files

      protected List<org.apache.struts.upload.FormFile> files
  • Constructor Details

    • MockFormBean

      public MockFormBean()
    • MockFormBean

      public MockFormBean(boolean throwException, boolean returnNulls)
    • MockFormBean

      public MockFormBean(boolean throwException)
    • MockFormBean

      public MockFormBean(boolean throwException, boolean returnNulls, String defaultValue)
    • MockFormBean

      public MockFormBean(String stringProperty)
    • MockFormBean

      public MockFormBean(boolean throwException, boolean returnNulls, String defaultValue, int arrayCount)
    • MockFormBean

      public MockFormBean(boolean throwException, boolean returnNulls, Double defaultDouble)
  • Method Details

    • getJustThrowAnException

      public String getJustThrowAnException() throws Exception
      Throws:
      Exception
    • getThrowIllegalAccessException

      public Object getThrowIllegalAccessException() throws Exception
      Throws:
      Exception
    • getStringValue

      public String getStringValue() throws Exception
      Throws:
      Exception
    • getStringArray

      public String[] getStringArray() throws Exception
      Throws:
      Exception
    • getDoubleValue

      public Double getDoubleValue() throws Exception
      Throws:
      Exception
    • getBooleanProperty

      public boolean getBooleanProperty()
    • setBooleanProperty

      public void setBooleanProperty(boolean booleanProperty)
    • getMapProperty

      public Map<String,String> getMapProperty()
    • getMapPropertyArrayValues

      public Map<String,String[]> getMapPropertyArrayValues()
    • getStringProperty

      public String getStringProperty()
    • setStringProperty

      public void setStringProperty(String stringProperty)
    • setFiles

      public void setFiles(List<org.apache.struts.upload.FormFile> files)
    • getFiles

      public List<org.apache.struts.upload.FormFile> getFiles()