What I do is I iterate over the db folder and delete all contents, as returned by the java.io API.I delete the db in the tearDown, see it deleted, but then in setup I'm told that it already exists.
Do you delete the db folder itself? Or just its contents? Try making sure that the entire db folder is gone; perhaps an empty folder is causing the "db exists" problem that you are seeing. thanks, bryan
