Clear the in memory database after every testcase
问题 I am using hsqldb for testing some of the data access layer in Java. I have certain test cases like 100 around. I create a in memory database and then insert some values in the table so that with my test case i can load it, but the problem is for every test case i need to clear the in memory database, only the values not the tables. Is it possible, one thing is i need to manually delete the rows from the table and is there some thing else I can use. Thanks 回答1: If you use DbUnit in unit-tests