Martijn Visser created FLINK-41702:
--------------------------------------
Summary: [JUnit5 Migration] Remove the JUnit 4 dependency from
MiniClusterExtension
Key: FLINK-41702
URL: https://issues.apache.org/jira/browse/FLINK-41702
Project: Flink
Issue Type: Sub-task
Components: Tests
Reporter: Martijn Visser
MiniClusterExtension creates an InternalMiniClusterExtension in beforeAll,
which delegates to MiniClusterResource. That class extends
org.junit.rules.ExternalResource, so every JUnit 5 ITCase that uses
MiniClusterExtension would fail with a NoClassDefFoundError once junit:junit is
no longer on the test classpath. We should move the lifecycle logic of
MiniClusterResource into InternalMiniClusterExtension (or a JUnit-free helper)
and keep MiniClusterResource and MiniClusterWithClientResource as deprecated
JUnit 4 wrappers for the connector repos.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)