com.opensymphony.xwork2.mock

## Class MockResult

- java.lang.Object
- - com.opensymphony.xwork2.mock.MockResult

- All Implemented Interfaces:
    Serializable, Result

      public class MockResult
      extends Object
      implements Result

  Mock for a `Result`.
  Author:
    Mike, Rainer Hermanns
  See Also:
    Serialized Form

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.opensymphony.xwork2.Result

      `Result.LegacyAdapter`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `DEFAULT_PARAM`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MockResult()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `void` | `execute(ActionInvocation invocation)`
    `ActionInvocation` | `getInvocation()`
    `int` | `hashCode()`
    `void` | `setFoo(String foo)`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface com.opensymphony.xwork2.Result

      `adapt, execute`

- - ### Field Detail

    - #### DEFAULT_PARAM

          public static final String DEFAULT_PARAM

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### MockResult

          public MockResult()

  - ### Method Detail

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### execute

          public void execute(ActionInvocation invocation)
                       throws Exception

      Throws:
        `Exception`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### setFoo

          public void setFoo(String foo)

    - #### getInvocation

          public ActionInvocation getInvocation()

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.