vendredi 7 octobre 2016

Spring boot 1.4 test with h2database (rollback in each test)

I'm new on testing and I'm running a @DataJpaTest (spring boot 1.4). I have some tests running right but I want all the tests perform a rollback before start an other to avoid h2database errors or conflicts.

I'm using a general "import.sql" file to insert some common data at startup and I'm doing some inserts in each test.

Thank you

Aucun commentaire:

Enregistrer un commentaire