lundi 18 septembre 2017

How to prevent @Rollback in a specific method?

I'm doing tests using Geb in Grails 3. A particular test case is breaking because Grails is speaking to my database in two different sessions in this case. My spec is annotated with @Rollback, to rollback all changes made with each test.

Is there a way to disable @Rollback for this one method, then after the test is complete, manually rollback the changes?

Aucun commentaire:

Enregistrer un commentaire