[ 
https://issues.apache.org/jira/browse/FLINK-40988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martijn Visser resolved FLINK-40988.
------------------------------------
    Fix Version/s: 2.5.0
       Resolution: Fixed

Fixed in apache/flink:master 

[FLINK-40988][runtime] Make JUnit lifecycle methods non-private 
4a9640e012096f7b11e23aa5fca9f3e594a5b689

[FLINK-40988][tests] Bump JUnit to 5.14.4 
d7496a33a769210e231e3fed99be59478eb78468

[FLINK-40988][tests] Make MiniClusterExtension parameters  AutoCloseable 
847b8c4573a374a262189c8edb2f3edd083c562e

[FLINK-40988][tests] Use @ParameterizedClass in a first set of tests 
ae252c283ff36c95da9ecd51b1bb44c67cda359c

> Bump JUnit to 5.14
> ------------------
>
>                 Key: FLINK-40988
>                 URL: https://issues.apache.org/jira/browse/FLINK-40988
>             Project: Flink
>          Issue Type: Technical Debt
>          Components: Test Infrastructure
>            Reporter: Martijn Visser
>            Assignee: Martijn Visser
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.5.0
>
>
> We should bump JUnit from 5.11.4 to 5.14.4. That is the last 5.x release, 
> since JUnit 6 requires Java 17 and we still support Java 11.
> Among others this adds {{@ParameterizedClass}}, which runs every test method 
> in a class once per parameter set 
> https://docs.junit.org/5.14.0/api/org.junit.jupiter.params/org/junit/jupiter/params/ParameterizedClass.html.
>  That makes it a better fit for new parameterized tests than our own 
> {{ParameterizedTestExtension}}, where a plain {{@Test}} silently runs only 
> once (see FLINK-40971). This ticket converts a first set of existing tests, 
> one per usage pattern of {{ParameterizedTestExtension}}. The others can 
> follow separately.
> {{JUnit5TestEnvironment}} implements {{ExtensionContext}} itself and needs 
> the methods added since 5.11. JUnit 5.14 also warns about private lifecycle 
> methods in a few flink-runtime tests, which will be disallowed in a future 
> release.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to