gaurav kumar pandey created FLINK-40564:
-------------------------------------------

             Summary: [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


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)

Reply via email to