Commit 4ad8941
committed
Expand PowerMockWhiteboxToJavaReflection to cover more Whitebox APIs
Adds migration of getField, getMethod, invokeConstructor, static
invokeMethod(Class,..), the where-Class get/setInternalState overloads,
and non-literal field/method names, alongside the existing
setInternalState/getInternalState/invokeMethod support. Primitive results
are cast through their wrapper type, and the explicit Class[]/varargs-array
overloads of invokeMethod/invokeConstructor are deliberately left untouched
(no faithful mechanical translation).1 parent 5b719c2 commit 4ad8941
3 files changed
Lines changed: 1339 additions & 103 deletions
File tree
- src
- main
- java/org/openrewrite/java/testing/mockito
- resources/META-INF/rewrite
- test/java/org/openrewrite/java/testing/mockito
0 commit comments