EricGao888 commented on code in PR #12244: URL: https://github.com/apache/dolphinscheduler/pull/12244#discussion_r985189933
########## dolphinscheduler-common/src/test/java/org/apache/dolphinscheduler/common/utils/NetUtilsTest.java: ########## @@ -30,12 +30,13 @@ import org.junit.After; import org.junit.Test; -import org.powermock.reflect.Whitebox; +import org.springframework.test.util.ReflectionTestUtils; Review Comment: @kezhenxu94 @ruanwenjun @caishunfeng Currently `springframework.test.util.ReflectionTestUtils` is the only thing I find that could replace `powermock.reflect.Whitebox`. However, it could not modify `final` field. That's why I remove `final` keyword of `KUBERNETES_MODE` in `Constant.java`. I'm not sure whether there is a better way. -- 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]
