mercredi 3 juillet 2019

How to retrieve data from json files to use it in test

I have created several json files (entity.json) in my project located in src/test/resources/ they all contain a simple json object representing my entities.

What I want to be able to use those objects in my test (unit and integration, I'm testing a crud Rest Service).

How can I retrieve the data in those files to use it in my test?

Aucun commentaire:

Enregistrer un commentaire