jeudi 19 décembre 2019

Why is @Sql not working within Spring test?

I have a @DataJpaTest which requires some database intialization. I have tried putting a data.sql within the resources folder and it works. However, I would like to initialize the database with data specific for this test.

It seems, @Sql is the preferred way to do so. However, in my case it is not working, although the specified file is located within resources. The database simply isn't initialized.

What can I do?

Aucun commentaire:

Enregistrer un commentaire