when trying the diffblue plugin in Intellij it is writing a partial test. The problem line is where a method of an object which is a field of the class under test is called. diffblue is instantiating this object rather than mocking it and the test then gets a NullPointerException when a method is called on the object. Although the object can be constructed it does lookups when its methods are called so would normally need a Spring context to work.
Is there a way to tell diffblue that this class and its methods should be mocked?
There is some documentation on custom inputs and creating a DiffblueBase class but I think this is for use with cover cli. In my first experiment the base class wasn’t used.