Updates:
Status: Invalid
Comment #1 on issue 403 by
brice.du...@gmail.com: Unable to set internal
Hi,
First I must warn you, using Whitebox, which is an internal tool, is
dangerous because we can change behavior, signature or even remove it
whenever we feel it it's necessary. Plus as it's internal it isn't properly
documented.
The code shows that it isn't doing what you expect in this line
`Whitebox.setInternalState(myclass.class, "config", mockConfiguration);`.
You'' need to pass the MyClass instance, not the class. I believe the
stacktrace show a Caused By, that probably explains more what's happening.
FieldSetter is more appropriate I believe for what you want to achieve,
still it's an internal class, and there fore subject to change.
Hope that helps
Cheers,
Brice