Skip to content

commit/rollback: make sure connection gets closed#2

Open
witoldsz wants to merge 1 commit intomasterfrom
finally_close_quietly
Open

commit/rollback: make sure connection gets closed#2
witoldsz wants to merge 1 commit intomasterfrom
finally_close_quietly

Conversation

@witoldsz
Copy link
Copy Markdown
Owner

@witoldsz witoldsz commented Dec 9, 2014

No description provided.

@witoldsz
Copy link
Copy Markdown
Owner Author

witoldsz commented Dec 9, 2014

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

@lukaseder
Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants