Women in Technology

Hear us Roar

  Unit Test Your Struts Application
Subject:   What about StrutsTestCase for JUnit?
Date:   2004-09-27 04:57:31
From:   pattersonw
I'm currently evaluating unit testing frameworks for my own needs, and had already been investigating StrutsTestCase for JUnit when I stumbled upon this article and solution.
If I am not mistaken, StrutsTestCase has been around for a while, and allows the tester/developer to directly use the Struts artifacts such as mappings, form beans, etc.
Was the author of StrutsUT aware of the existence of StrutsTestCase? If so, why did he/she find it inadequate? If not, how do the two testing frameworks compare in terms of ease of setup, ease of use, ability to generate thorough tests, etc?
Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • What about StrutsTestCase for JUnit?
    2004-09-28 18:43:33  lujian213 [View]

    The emphasis of this article is to introduce the initial idea of Cactus from a developer's point of view. And extend the idea in Struts env. StrutsUT is not a mature product, it is only a reference implementation of the author's idea. Readers can reference StrutsUT to do their own implementation.

    I looked through StrutsTestCase user guide. I am not very clear in some points. When the action class uses external interface, StrutsUT can handle it with mock object. I don't know how StrutsTestCase handles it. This point is an important aspect of StrutsUT. If you have time, would you please give out a test case using StrutsTestCase according to the example in my article? Thanks.