If you separate your persistence code into some kind of PersistenceManager with an Interface, you can use Mock objects to test that your Action interacts with your PM correctly, then have unit tests for your PM to make sure it works correctly.
> -----Original Message----- > From: Francisco Hernandez [mailto:[EMAIL PROTECTED] > Sent: Monday, October 06, 2003 1:16 AM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] testing web applications > > > hey guys, im new to unit testing and am wondering what kind > of tests you > guys do you your apps > > for example I have an action that creates a user, do you guys simply > populate the parameters and execute the action and then check > to see if > the user exists with the correct data in the datastore? > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork