Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleHow can we test Actions

Struts 2 Actions can be tested using either the JUnit or TestNG framework. It is used by the developer who implements unit tests in Java

There are several approaches to unit testing Struts 2-based applications, whether using JUnit or TestNG. Two popular techniques are direct Action invocation and testing interceptors and result-types independently. We will demonstrate both approaches using JUnit 3.

...