I am trying to learn integration testing with Spring and Hibernate. I would like it to create schema before running tests and drop it when tests finish so that they always start clean.
hibernate.hbm2ddl.auto=create-drop does the first part for me: Create schema. But how do I get it to drop it?
I am testing it by deploying my application to JBoss. Schema is created properly, but when I undeploy or stop server it is not dropped. How can I do it?