<@U7TJY2ZD3> Thanks for the suggestion. With `moc...
# mockk
a
@oleksiyp Thanks for the suggestion. With
mockkConstructor(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.