Join Slack
Powered by
How do I mock a public field in a Java class with ...
# mockk
d
dave08
01/03/2019, 12:46 PM
How do I mock a public field in a Java class with a package local constructor, I need to pass it to another class's constructor...?
h
Hadi Tok
01/03/2019, 3:52 PM
if it is public field you can just set it.
Hadi Tok
01/03/2019, 3:53 PM
you saying that you cannot instantiate the class?
11
Views
Open in Slack
Previous
Next