StrutsTestCase Simplifies the Development Process
By Sunil Patil2005-04-28
Advantages and Disadvantages of Mocking
There are several advantages to using the mock approach. This approach is fast because you don't have to start and stop containers for every change. It also allows granular tests. On the other hand, because you don't use real a container, you can't verify any side effects introduced by listeners or filters. Also, because ActionForward JSP components are not executed, you won't be able to find errors in the JSPs.
Tutorial Pages:
» Save Time by Using STC's Mock and Cactus Testing Approaches
» Sample Application
» Using the Mock Object Approach
» Advantages and Disadvantages of Mocking
» Cactus Approach
» Cactus Pros and Cons
» Conclusion
» Resources
First published by IBM DeveloperWorks
