Ther problem is that all of our code is called by reflection, with intefaces decided years ago. So nothing can be passed in the constructors.
Yesterday I was trying to mock the ElementTemplateMasterService to return a new response. But with this mornings refactor I am only trying to maock the FlexifieldMaster, but it is still an object I have no control over the instantiation of.
This is the test I am trying to fix (currently in progress trying to sort out an answer):
this is the method I am trying to stub out (on FlexiFieldMaster)
well with help I got the previous version to work using doReturn, but then other code after the call caused problems, so I had to stub even higher up and endud up using doNothing.
So my question has become, Is there any good documentation that actually documents this without presuming you are a master of easyMock just converting?
I am going to test your electrical conductivity with this tiny ad:
a bit of art, as a gift, that will fit in a stocking