I was a committer for DbUnit back in the day, which does stage information nicely into the database for running tests. We used it in conjunction with WebTest to drive all testing from ant. It has worked well in the past, but might not be the most up to date solution.

The only concern that I would have on this front is that there may be too much data to stage, With large amounts of data, the DbUnit approach could run into some performance issues with certain data sets. It might still be a viable approach for you John depending on your situation.

I'd still love to hear more about Brett's JXUnit experience whenever he gets a chance.

Cheers,
Tim

--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595

John Martin wrote:
I'm looking for a good way of testing service methods that do CRUD on
various tables in the database.

I reviewed the framework/testtools and it didn't seem that there was
much if anything going on there nor did it appear to address
manipulation of test database data.

While poking around I ran into ProposedOFBizTestFramework document by
Brett Palmer that uses JXUnit
(http://ofbizwiki.go-integral.com/Wiki.jsp?page=ProposedOFBizTestFramework
).

This document looks quite promising and seems like it is exactly what
I am looking for but the ofbiz-test that it referenced no longer
exists at SourceForge.  Is this a dead project?  If not, where is it
now located?

What is the best practices for writing a test suite for new services
that are manipulating data?

Thanks!

John

Reply via email to