It's not that I need to mock this class. It's just...
# announcements
r
It's not that I need to mock this class. It's just easier to use, when you don't have to specify all constructor parameters, when you in fact don't need it. However with little brainstorming with colleagues we've come to a workaround. I'll just create a function that looks like data class constructor and provides default values (which I don't want to have on production class). Then I'll be able to "construct" my data class object just by invoking factory method and "overriding" specific properties using named parameters. What do you think of such solution?