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

Create JDBI 3 extension to support using multiple DAOs in tests #321

Closed
sleberknight opened this issue Jul 30, 2022 · 0 comments · Fixed by #322
Closed

Create JDBI 3 extension to support using multiple DAOs in tests #321

sleberknight opened this issue Jul 30, 2022 · 0 comments · Fixed by #322
Assignees
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Milestone

Comments

@sleberknight
Copy link
Member

The existing Jdbi3DaoExtension is designed to allow easily testing one type of DAO. It doesn't easily translate to multiple DAOs. See discussion #283 for background information.

This issue is to create a new Jdbi3MultiDaoExtension which is specifically designed to allow multiple DAOs in a test.

@sleberknight sleberknight added the new feature A new feature such as a new class, method, package, group of classes, etc. label Jul 30, 2022
@sleberknight sleberknight added this to the 2.2.0 milestone Jul 30, 2022
@sleberknight sleberknight self-assigned this Jul 30, 2022
@sleberknight sleberknight added the in progress A task that is actively being worked on label Jul 30, 2022
sleberknight added a commit that referenced this issue Jul 30, 2022
* Add Jdbi3MultiDaoExtension to allow easy use of more than one DAO
  in test classes

Misc:

* Fix typo in Javadoc in Jdbi3DaoExtension and also fix the link to
  SqlObjectPlugin so that it only shows the class name, not the FQCN
* Add trailing newline in logback.xml, which I found while temporarily
  changing the log level of JDBI while implementing the test

Closes #321
@sleberknight sleberknight removed the in progress A task that is actively being worked on label Jul 31, 2022
chrisrohr pushed a commit that referenced this issue Aug 2, 2022
* Add Jdbi3MultiDaoExtension to allow easy use of more than one DAO
  in test classes

Misc:

* Fix typo in Javadoc in Jdbi3DaoExtension and also fix the link to
  SqlObjectPlugin so that it only shows the class name, not the FQCN
* Add trailing newline in logback.xml, which I found while temporarily
  changing the log level of JDBI while implementing the test

Closes #321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant