I am trying to mock an object I get from a third p...
# mockk
j
I am trying to mock an object I get from a third party library. Unfortunately, it looks like they are doing something complicated with their object. When I run the test, I get the following exception:
Copy code
Sep 11, 2019 3:48:57 PM io.mockk.impl.log.JULLogger warn
WARNING: Failed to set backing field (skipping)
java.lang.IllegalArgumentException: Can not set com.stripe.model.ExpandableField field com.stripe.model.Customer.defaultSource to java.lang.String
Is there a way I can get around this? I just want to return a simple string. ­čś×