ultm icon indicating copy to clipboard operation
ultm copied to clipboard

commit/rollback: make sure connection gets closed

Open witoldsz opened this issue 11 years ago • 2 comments

witoldsz avatar Dec 09 '14 10:12 witoldsz

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...

witoldsz avatar Dec 09 '14 10:12 witoldsz

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...

lukaseder avatar Dec 09 '14 11:12 lukaseder