LI123456mo opened a new pull request, #16032: URL: https://github.com/apache/dubbo/pull/16032
This PR adds unit test coverage for the ToStringUtils utility class to ensure robust object-to-string conversion. Key Coverage: Null Safety: Verified that both printToString and toString return "null" without crashing. Collection Handling: Tested formatted output for Arrays, Lists, and Maps, ensuring correct use of brackets, braces, and delimiters. Recursion: Confirmed that nested collections (e.g., a List inside a Map) are correctly unwrapped and formatted. Simple Types: Ensured primitives and basic types (String, Integer, Boolean) return their expected string values. Verification: Successfully ran mvn clean test -Dtest=ToStringUtilsTest -pl dubbo-common with green results. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
