Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

assertEquals("Result returned form executing the action was not success but it should have been.", "success", result);

Testing a Struts action against a custom Struts configuration file

Override getConfigPath method to return a comma separated list of paths to a configuration file.

Code Block
JAVA
JAVA
titleSpecify Struts Configuration File Location Example

    @Override
    protected String getConfigPath() {
        return "struts-test.xml";
    }

Testing A Struts Action When Using Spring

...