If you want to drop your database at each test launch, open the file persistence.xml (under JPA) and modify the following line:
<property name="javax.persistence.schema-generation.database.action" value="create"/>
to become as follows:
<property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
Nessun commento:
Posta un commento