We have implemented NUnit with this... you do have to duplicate the config files - ours is asp.net, so we create an app.config file as well as the properties.config we use for sql configuration for iBatis. We do all of this with a NAnt task. If you figure out a better way to do this, I'm open, but NAnt is very nice and does it for us (only a one time setup). -Ross
________________________________ From: Brian Kierstead [mailto:[EMAIL PROTECTED] Sent: Fri 2/16/2007 11:35 AM To: [email protected] Subject: iBatis and Unit Testing Hello, We are currently implementing unit testing on our team and trying to figure out how to do it. We use ibatis, both the dao and mapper, and layers similar to the npetshop project. We want to test our persistence layer, but we're stuck on how to do it since the dao is instantiated in the service layer. What are others doing? We've talked about replicating the entire service layer, along with the config files for ibatis, but that seems like a lot do. Thanks! B ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
<<winmail.dat>>

