Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
ConsumerTestBuilder is meant to be an unit testing utility; however, we seem to use Mockito#spy quite liberally. This is not the right testing strategy because we basically turn unit testing into integration testing.
While the current unit tests run fine, we should probably make the mocking using Mockito#mock by default and test each dependency independently.
The ask here is
- Make mock(class) by default
- Provide more flexible interface for the testBuilder to allow user to configure spy or mock. Or, let user pass in their own mock.
Attachments
Issue Links
- links to