Alan Lee
07/09/2018, 8:31 PMmockkConstructor(XxxError::class)
the constructor still gets called with the above code.
static final
fields get initialized first which calls the private constructors.
What else would I need to do to? Or is this mock even possible with mockk
? Java class is from an library I use and have no control over the source code.
Also there are multiple private constructors; xxxError(String)
and xxxError(String, int)
.
Don’t think mockkObject
works either.