On 10/4/07, Janet MacKay <[EMAIL PROTECTED]> wrote:
> Does anyone know of an article(s) explaining how to work rollbacks into unit 
> testing? I want to test a series of DAO's, but am not sure how to incorporate 
> this into my tests.

Broadly speaking, depending on what you're testing, mock objects may
be enough. If the goal is to test the objects then that's probably
enough. If you need to actually test the CRUD code itself, then you
might want to look at DBUnit  for managing database state. There's
some fine articles on IBM developerWorks and similar places -- it's
pretty simple to use it to restore a database to a known state.

> Janet
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290298
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to