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.
Subscribe to:
Post Comments (Atom)
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...
-
Already Microsoft getting heat from Google, that Google is capturing all critical functionalities from Microsoft office suite and developed ...
-
When I was young, i used to listen old stories from grandmother and a cousin of my grandfather. Most of the stories are from their flashback...
-
When I start thinking about future, my mind exploding without control, particularly current events and state of our economy. There is no d...
No comments:
Post a Comment