You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Martijn Visser (Jira)" <ji...@apache.org> on 2026/10/12 11:27:00 UTC
[jira] [Closed] (FLINK-40564) [JUnit5 Migration] Migrate flink-statebackend-changelog tests to JUnit 5 and AssertJ
[ https://issues.apache.org/jira/browse/FLINK-40564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martijn Visser closed FLINK-40564.
----------------------------------
Resolution: Duplicate
> [JUnit5 Migration] Migrate flink-statebackend-changelog tests to JUnit 5 and AssertJ
> ------------------------------------------------------------------------------------
>
> Key: FLINK-40564
> URL: https://issues.apache.org/jira/browse/FLINK-40564
> Project: Flink
> Issue Type: Technical Debt
> Components: Runtime / State Backends
> Reporter: gaurav kumar pandey
> Priority: Major
>
> h2. Motivation
> As part of the umbrella migration to JUnit 5 and AssertJ (FLINK-25325), all test suites in the `flink-statebackend-changelog` module should be modernized to JUnit 5 (Jupiter) and AssertJ.
> h2. Scope of Changes
> Modernize legacy JUnit 4 annotations, rules, and assertions in `flink-statebackend-changelog`:
> * Replace `@org.junit.Test`, `@Before`, `@After` with JUnit 5 Jupiter annotations (`@org.junit.jupiter.api.Test`, `@BeforeEach`, `@AfterEach`).
> * Replace `@Rule TemporaryFolder` with JUnit 5 `@TempDir Path`.
> * Replace JUnit 4 parameterized runners (`@RunWith(Parameterized.class)`) with Flink's `@ExtendWith(ParameterizedTestExtension.class)` and `@TestTemplate`.
> * Replace `org.junit.Assert.*` and Hamcrest matchers with AssertJ `assertThat(...)`.
> * Update class and test method visibility to package-private.
> Test suites to migrate:
> - ChangelogMetricGroupTest
> - ChangelogStateBackendLoadingTest
> - ChangelogStateDiscardTest
> - ChangelogListStateTest
> - ChangelogMapStateTest
> - ChangelogPqStateTest
> - StateChangeLoggerTestBase
> - KvStateChangeLoggerImplTest
> - PriorityQueueStateChangeLoggerImplTest
> - ChangelogDelegateStateTest
> - ChangelogKeyedStateBackendTest
> - ChangelogStateBackendTestUtils
--
This message was sent by Atlassian Jira
(v8.20.10#820010)