Replace usage of deprecated JUnit APIs#43
Conversation
This commit removes calls to deprecated JUnit APIs and adopts the `EngineDiscoveryRequestResolver` approach to test discovery.
d3a7e9a to
844938a
Compare
|
For context, I noticed this while testing spring-modulith against a 6.0.0-SNAPSHOT version of JUnit in which some of the deprecated APIs had been deleted which caused the engine to fail. |
|
🥳 Thank you for your contribution. That's merged now. |
|
@mp911de Could you please double-check that my changes don't break anything? The tests in |
|
Checked against a few of my projects containing benchmarks. Jitpack has published new snapshots so your tests with Spring Modulith should pass now. |
|
The spring-modulith build now fails for a different reason:
|
|
We're using quite a few internal APIs to reuse conditions. There has been once a ticket/thread discussion potential reuse but that didn't go anywhere because of complexity vs. benefits. The config support makes heavy use of converters and defaulting. Such concerns aren't the core of this project yet necessary to leverage conditions. Implementing in this project bears always the risk of different defaults or different behavior leaving with the unclear choice of the lesser evil. Chasing internal API changes seemed to be less problematic than duplicating code and following up with changes. |
EngineDiscoveryRequestResolver