XpdWiki
Set your name in
UserPreferences Edit this page Referenced by
JSPWiki v2.0.52
![]() ![]() |
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
|