0

Does someone knows a method to rollback a transactions carried out during a test ..

With Spring it would be easy ...

But I'm reviewing an application that does not use the framework ..

1 Answer 1

1

You would have to do it manually on @After annotated method.

But I strongly encourage setting up an in memory db(such as HSQLDB) which could be generated from entities. That way, you'll have much faster tests and tests would not depend on each other - the purpose of unit tests.

Check this link

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.