2009/3/8 Adam Heath <doo...@brainfood.com>

> Scott Gray wrote:
> > I haven't worked on it for a few weeks but I do have some code that
> > can track changes on the GenericDelegator and then reverse them when
> > requested.  At the moment it makes the test independent at the
> > component level, mostly because the was the easiest place to do it.
> > I've tested it by exporting the data from a fresh install, running
> > the tests, exporting again and comparing the differences and at the
> > moment the only data that gets left behind is anything coming from
> > async service calls.
>
> My code doesn't require anything fancy.  It just makes a backup copy
> of the entire data folder, and restores it between test runs.  It was
> easy to do this, then try to have some filter that rolls back a
> complex series of changes.
>

That approach is fine by me, except it limits you to testing with derby only
rather than a production type database.

Reply via email to