I gonna write several intergration tests which will test interatcion with db. For each test I need to have a certain snapshot of db. Each db snapshot saved in .sql file. What I want is to execute certain script file in certain test method, like this:
@Test
public void test_stuff(){
executeScript(finame.sql);
... testing logic ...
clean_database();
}
Does hibernate has some means to do this?