Shilun Fan created HADOOP-19671:
-----------------------------------
Summary: 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
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]