Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commit/rollback: make sure connection gets closed #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

witoldsz
Copy link
Owner

@witoldsz witoldsz commented Dec 9, 2014

No description provided.

@witoldsz
Copy link
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

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