[ https://issues.apache.org/jira/browse/HADOOP-19425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18011675#comment-18011675 ]
ASF GitHub Bot commented on HADOOP-19425: ----------------------------------------- slfan1989 commented on PR #7674: URL: https://github.com/apache/hadoop/pull/7674#issuecomment-3148369945 After rebasing the code on the latest trunk, the unit tests have been comprehensively upgraded to use JUnit 5. The key improvements and adjustments are as follows: > Standardized Use of @Timeout Annotation All test methods using @Timeout now explicitly specify the unit parameter to preserve the original time unit (milliseconds via TimeUnit.MILLISECONDS), ensuring consistent behavior without altering existing logic. > Assertion Parameter Order Corrections Issues caused by incorrect parameter ordering in assertEquals assertions during migration have been manually reviewed and corrected to ensure accurate test logic and prevent false negatives. > Replacement of Assume Statements Legacy org.junit.Assume statements have been replaced with JUnit 5's org.junit.jupiter.api.Assumptions.assumeTrue, bringing assumption-based tests into alignment with the JUnit 5 framework. > Parameterized Test Structure Optimization Introduced the new JUnit 5 annotation @ParameterizedClass to refactor parameterized tests. This preserves the original structure as much as possible while significantly improving readability and maintainability. > Removal of JUnit 4 Dependency The hadoop-azure module has fully removed its dependency on JUnit 4. All upgraded tests now compile and run successfully under JUnit 5 alone. > [ABFS] Upgrade JUnit from 4 to 5 in hadoop-azure. > ------------------------------------------------- > > Key: HADOOP-19425 > URL: https://issues.apache.org/jira/browse/HADOOP-19425 > Project: Hadoop Common > Issue Type: Sub-task > Components: build, fs/azure, test > Affects Versions: 3.5.0 > Reporter: Shilun Fan > Assignee: Shilun Fan > Priority: Major > Labels: pull-request-available > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org