on the testcontainers thread I mentioned that we can switch to JUnit5.
I've attended a talk by Sam Brannen at the local JUG. I think it was a
variant of the talk he gave at SpringOne 2017.
The key takeaway for me was that JUnit5 is forward and backward
compatible, so you can run the same tests written with JUnit4
annotations on JUnit5, but you can also run JUnit5 tests on JUnit4, if
for some reason that would make sense in a particular case.
What I understood is that we could upgrade to JUnit5 by simply
upgrading the surefire/failsafe Maven plugins and adding the
junit-vintage-engine dependency but only to a module that has mixed
JUnit4 and JUnit5 tests. The only issue is limited @Rule support.
Now on to the benefits, I think it makes much sense to move over to
JUnit5 for the conditional test execution, better categorization of
tests via tags and the much better extension model.
I propose that we schedule this for the one release after the pending
one (so in 2.23), and that we add camel-test-jupiter component that
would help developers write nicer tests for their integrations with
support for dependency injection for example.
yes we can wait for that and the Surefire/Failsafe release that
includes it. I think we can also add
to the existing Surefire/Failsafe plugin configurations.
As far as I understand that issue is tracking the incorporation of the
existing codebase from JUnit5 into Surefire.
On Wed, May 23, 2018 at 10:15 AM, David Karlsen <[hidden email]> wrote: