[jboss-dev-forums] [Design of JBoss jBPM] - Re: Major refactoring of the jbpm3 core test suite

tom.baeyens@jboss.com do-not-reply at jboss.com
Mon Sep 15 10:47:58 EDT 2008


can you explain how you make sure that each test starts from a clean DB ?

i also played with the idea that each test should delete its own generated data explicitely.  but that turned out to be very impractical and tedious.   usually when you forget to delete a record (and this can be very unexpected) it is not a problem so you won't know at that time.  then when after a while a test might be created or changed and that might lead to a clash.  those are typically very hard to find.

so far, clearing the whole db has proven to work well.  but i'm open to hearing alternatives if you think they are better.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176548#4176548

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176548



More information about the jboss-dev-forums mailing list