Sunday, June 29, 2008

Struts 2 - Unit Testing

Somebody asked me to write a blog about unit testing for Struts 2. Cactus is the best test frame work to test any server side code. One advantage of Srtuts 2 is, action classes are no longer tied with servlet container and A)each action class is a single Java class in other words POJOs B)No mocking object required. Unit testing is very simple for Struts 2, that is, the main purpose of Struts 2 framework. We can use simple JUnit test framework to do Struts 2 unit testing. I recommend, very simple JUnit is better option to do unit testing for Struts 2.

No comments:

From Generative AI to Agentic AI: 2 Weeks of Building MyNewsAI.io

From Generative to Agentic AI: 2 Weeks Building MyNewsAI.io Over the last two weeks, I set out to evolve MyNewsAI...