lundi 28 septembre 2015

spring test - setup data, run tests and rollback

I have many spring tests across many test classes. What I'd like to do is:

  1. run a db script to initialize the data (only once)
  2. run all tests
  3. run another db script to update the data to the original state (only once)

I've been struggling about this... what would be the best approach to solve this issue?

Thanks a lot in advance!!

Aucun commentaire:

Enregistrer un commentaire