apache / shenyu

Apache ShenYu is a Java native API Gateway for service proxy, protocol conversion and API governance.
https://shenyu.apache.org/
Apache License 2.0
8.44k stars 2.93k forks source link

[Task] remove powermock in shenyu pom.xml #2793

Closed haibo-duan closed 2 years ago

haibo-duan commented 2 years ago

Description

powermock doesn't work anymore in Java 17. In java 16, you must add --illegal-access=permit to ensure powerMock executes successfully. otherwise, "RuntimeException: PowerMock internal error: Should never throw exception at this level" will occurs. we need to get rid of PowerMock in unit tests. this issue will remove powermock in shenyu pom.xml.

Task List

haibo-duan commented 2 years ago

remove AbstractDataChangedListenerTest Whitebox remove UpstreamCheckService @PrepareForTest