[ 
https://issues.apache.org/jira/browse/HADOOP-19671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18017153#comment-18017153
 ] 

Shilun Fan edited comment on HADOOP-19671 at 8/30/25 6:39 AM:
--------------------------------------------------------------

[[email protected]] The JUnit 5 upgrade for Hadoop is nearing completion, and 
I will soon initiate a new upgrade plan to migrate the unit tests to AssertJ in 
order to improve test readability and maintainability.
 
 We need to establish a new set of unit testing standards. If you have any 
relevant suggestions or rules, feel free to share.
 
 


was (Author: slfan1989):
[[email protected]] The JUnit 5 upgrade for Hadoop is nearing completion, and 
I will soon initiate a new upgrade plan to migrate the unit tests to AssertJ in 
order to improve test readability and maintainability.
 
 
 

> Migrate to AssertJ for Assertion Verification
> ---------------------------------------------
>
>                 Key: HADOOP-19671
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19671
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Shilun Fan
>            Assignee: Shilun Fan
>            Priority: Major
>
> Currently, the unit tests in the project do not fully leverage modern 
> assertion capabilities, resulting in lower readability and maintainability of 
> the test code. To improve test clarity and extensibility, we plan to migrate 
> the existing assertion library to {*}AssertJ{*}.
>  
> *Objective:*
>  * Migrate all assertions in existing tests from JUnit or other assertion 
> libraries to AssertJ.
>  * Utilize AssertJ’s rich assertion methods (e.g., fluent API, more readable 
> assertions) to enhance the expressiveness of unit tests.
>  * Ensure that all existing unit tests continue to run correctly after 
> migration.
>  
> *Implementation Steps:*
>  # Analyze existing unit test code to identify assertions that need to be 
> replaced.
>  # Replace existing assertions with AssertJ assertion syntax.
>  # Run unit tests to ensure the tests pass and function correctly after 
> migration.
>  # Update relevant documentation to ensure the team is aware of how to use 
> AssertJ for assertions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to