Class MockResult

java.lang.Object
org.apache.struts2.mock.MockResult
All Implemented Interfaces:
Serializable, Result

public class MockResult extends Object implements Result
Mock for a Result.
Author:
Mike, Rainer Hermanns
See Also:
  • Field Details

  • Constructor Details

    • MockResult

      public MockResult()
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • execute

      public void execute(ActionInvocation invocation) throws Exception
      Description copied from interface: Result
      Represents a generic interface for all action execution results. Whether that be displaying a webpage, generating an email, sending a JMS message, etc.
      Specified by:
      execute in interface Result
      Parameters:
      invocation - the invocation context.
      Throws:
      Exception - can be thrown.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • setFoo

      public void setFoo(String foo)
    • getInvocation

      public ActionInvocation getInvocation()