Hello Dubbo Community,

I find that Dubbo have some test classes inherit production classes to support 
testing. Since Dubbo is using Mockito framework I believe some of the test 
classes are redundant and can be replaced by leveraging the mocking framework. 
This could improve the readability for test code and decrease the coupling 
between test and production code.

I created a pull request for some test classes and provided corresponding 
refactoring solutions https://github.com/apache/dubbo/pull/6860/files

I also attached the Issue Link here: https://github.com/apache/dubbo/issues/6859

I look forward to hearing your opinions!

Best Regards,
Xiao

Reply via email to