Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

StrutsTestCase Simplifies the Development Process

By Sunil Patil
2005-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


 | Bookmark
Related Tutorials:
» All about JAXP, Part 1
» Make Database Queries Without the Database
» Load List Values for Improved Efficiency
» 2 Ways To Implement Session Tracking
» A Simple Way to Read an XML File in Java
» Develop Aspect-Oriented Java Applications with Eclipse and AJDT