Will this JUnit 4 version be always necessary or will there be a version of dbunit which no longer depends on JUnit 4. Currently all our tests have been migrated to JUnit 5 and I prefer not having JUnit4 dependencies on the classpath.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The goal is to eliminate JUnit 4 deps. I'm in the same situation and have the same motivation.
No one is working on this at the moment tho, so if you or other team member have some time to analyze/find and note needed changes and/or make a branch starting the changes, it would help accomplish this earlier.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the reply.
For the time being I've removed all our Junit4 dependencies from the project and I added the maven-enforcer-plugin with the restrict-imports-enforcer-rule dependency which allows to check during buildtime that no Junit4 packages have been imported in the Test classes.
Last edit: Manfred 2020-02-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
--- old+++ new@@ -1 +1,3 @@
It works with the JUnit 5 runners but requires JUnit 4 on the classpath for those classes during execution.
++Also see https://sourceforge.net/p/dbunit/bugs/164/
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Will this JUnit 4 version be always necessary or will there be a version of dbunit which no longer depends on JUnit 4. Currently all our tests have been migrated to JUnit 5 and I prefer not having JUnit4 dependencies on the classpath.
The goal is to eliminate JUnit 4 deps. I'm in the same situation and have the same motivation.
No one is working on this at the moment tho, so if you or other team member have some time to analyze/find and note needed changes and/or make a branch starting the changes, it would help accomplish this earlier.
Thanks for the reply.
For the time being I've removed all our Junit4 dependencies from the project and I added the maven-enforcer-plugin with the restrict-imports-enforcer-rule dependency which allows to check during buildtime that no Junit4 packages have been imported in the Test classes.
Last edit: Manfred 2020-02-17
Diff: