-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add support for JUnit 5 extensions (#57) #67
base: master
Are you sure you want to change the base?
Conversation
5ad8fa1
to
02df00f
Compare
I realized it might be a better design to split the code into separate modules, like what was done in https://github.com/zapodot/embedded-jms-junit for example. Better separation of concerns, no dual dependency on JUnit 4 and JUnit 5 etc. But that will introduce quite a lot of changes in the project structure. WDYT @zapodot? |
Thanks for your contribution! |
All right, I think I can get it to work without breaking compatibility with older versions (especially the Maven coordinates). |
One remaining problem after modularization: most of the unit tests are in |
Good news! I moved (actually copied) most of the unit tests from I suppose I could remove most of the tests in So, to summarize:
|
I think there's an extra change that I could do: People who want to embed a simple LDAP server in their application (outside of the context of unit tests) could simply pull |
Any updates on this PR? 🤔 |
@bjansen any chance that you can rebase from the master branch? |
bump.... |
d5cebef
to
d87f910
Compare
I rebased from master, I'll probably squash the commits before merging. |
@zapodot do you think you could find some time to review this PR? |
Update here: #67 (comment)
Notes:* I didn't copy/adapt the full test suite because the code I put in the abstract classes is already tested by the Rule tests. I only added tests that make sure the builder works and the Extension starts/stops the server correctly.* I declared thejunit-jupiter-api
Maven dependency asoptional
to not force JUnit 5 down the throat of existing projects that use JUnit 4.* I considered changing thejunit
dependency to beoptional
too, but didn't do it because that could possibly break projects that don't pull JUnit 4 explicitly when they upgradeembedded-ldap-junit
to the next version.