Enable having JUnit6 tests for jena-core#3986
Conversation
66ab50b to
cf756a2
Compare
|
The conversion is guided AI and human checking. @arne-bdt -- I'm going to add converting That's much easier (= much more reliable in copilot) than JUnit3 conversion. It's almost applying certain fixed conversions. Only parameterization is different. JUnit3 conversion is made complicated by the amount of local infrastructure. It shows the JUnit3 framework was quite basic. The local JUnit3-related code around the tests is providing what in effect is parameterization, shared tests, and the way tests are grouped together, all of which are quite different in JUnit nowadays. |
|
Done! as a separate commit. The bulk was automatic but this time a lot of manual ... because I ran out of quota. But JUnit4 to JUnit6 is much less of a bump:
The test count in Eclipse for Difference between runtime and static counting maybe. |
Steps towards updating the jena-core tests.
This makes it possible to have JUnit6 tests in jena-core.
The jena-core POM now names these two classes.
I was hoping to use JUnit4 directly, and not junit-vintage-engine, which is deprecated and may be removed.
This would mean two test phases, different surefire providers, but I haven't managed to get surefire to work with this.
It has to use the vintage engine. If the POM depends on JUnit4, not junit-vintage-engine, then one or other of the test suite isn't found.
By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.