gaoxiaolei-s59 opened a new pull request, #16327: URL: https://github.com/apache/dubbo/pull/16327
## What This PR simplifies `MockClusterInvokerTest.testMockInvokerFromOverride_Invoke_Fock_WithOutDefault` by splitting the configured mock assertions and the unconfigured mock exception path into separate test cases. It also replaces the empty `try/catch` plus `Assertions.fail()` pattern with `Assertions.assertThrows`, making the expected `RpcException` explicit. ## Why Keeping each test focused makes failures easier to diagnose and addresses the readability improvement requested in #10486. Closes #10486. ## Verification - `./mvnw -pl dubbo-cluster -Dtest=MockClusterInvokerTest test` - `./mvnw -pl dubbo-cluster test` -- 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]
