Re: FW: StrutsTestCase & Hibernate

2006-05-06 Thread Adam Hardy
I think unit tests on everything are always a good idea - the problem comes if you start making them 'more' than just unit tests. Ideally you should be able to unit test action classes quickly with mock objects or stubs for both the business tier below and the MVC controller tier above. Stru

Re: FW: StrutsTestCase & Hibernate

2006-05-06 Thread Jakub Milkiewicz
Hi If you are thinking of unit tests for action i do not think it is great idea. For me actions should be as dumb as possible and just delegate business processing to another layer. 2006/5/5, Stasica, Grzegorz <[EMAIL PROTECTED]>: hi, Basically I'm interested in testing struts actions (forw

FW: StrutsTestCase & Hibernate

2006-05-05 Thread Stasica, Grzegorz
hi, Basically I'm interested in testing struts actions (forwards, messages etc). Most of the actions perform some actions on my database which I'd like to speed up. My idea is to isolate database tests from struts action test. There is only one way to achieve it which I see at the moment (mock ob