XpdWiki

FrontPage
RecentChanges
XtC
FindPage
PageIndex
XpApprentices

Set your name in
UserPreferences

Edit this page

Referenced by
PratikPatel




JSPWiki v2.0.52


StrutsTestCase


StrutsTestCase gives you the ability to TDD with the JakartaStruts? framework through the provision of a couple of JUnit TestCase subclasses and a bunch of MockObjects for the elements of the Struts framework. It's available at http://strutstestcase.sourceforge.net/

The interesting thing about this is the way it handles mock objects. TimM and SteveFreeman suggested that the point of mocks is that you're verifying that the expected methods were called on the mock objects rather than just asserting things about their state. The advantage is that the test fails the moment your mock object is called with an unexpected value rather than waiting till afterwards when you're making your assertions.--AdewaleOshineye


Edit this page   More info...   Attach file...
This page last changed on 08-Jan-2004 15:03:21 GMT by unknown.