Summary


This chapter examined the importance of in-container integration testing and the role the Cactus framework plays in implementing it. Cactus enables extreme programming on the J2EE platform by providing tests with access to the inner workings of a J2EE container. By doing so, Cactus allows and encourages scores of unit tests that might not otherwise have been written. The test cases it enables are often those that most need to be runtests of code that intertwines with container services. Also, because it allows access to the real thing rather than mock objects or the stub framework, you can gain valuable insight into your container as well as into your application.

With Cactus, when you feel tempted to grouse about the application server, you can write a quick test case to prove yourself wrong (or right!). Personally, we couldn't live without Cactusunit tests of server-side code should be easy to write, and Cactus makes that a reality.




Professional Java Tools for Extreme Programming
Professional Java Tools for Extreme Programming: Ant, XDoclet, JUnit, Cactus, and Maven (Programmer to Programmer)
ISBN: 0764556177
EAN: 2147483647
Year: 2003
Pages: 228

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net