O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

In-Container Testing Using Cactus, JUnit, StrutsTestCase, and Ant

This section is based on the strutsCACTUS.zip file that’s included on the CD-ROM that accompanies this book. Later sections of this chapter use different archives.

It turns out that every one of the test cases run in the previous section on mock object testing works fine as a mock object test. This is actually good because mock object tests are easier and more convenient to run than in-container tests. Mock object tests are easier because for in-container testing you need a container available for testing, at a minimum. Plus, you must get the code deployed and loaded in the container in order to test it. Many times this involves deploying the application and restarting the container ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required