ultm
ultm copied to clipboard
commit/rollback: make sure connection gets closed
No test no fun. Question is: how to make test database to throw exception on commit and rollback, so we could assert on connection close...
For example: By mocking the JDBC connection and throwing your own custom exception in the commit() method. You could use org.jooq.tools.jdbc.DefaultConnection for that...