Skip to content

Deprecate support for doubling multiple interfaces #3955

@sebastianbergmann

Description

@sebastianbergmann

The methods

  • getMockBuilder()
  • createMock()
  • createConfiguredMock()
  • createPartialMock()

currently support the creation of test doubles that implement multiple interfaces that are passed as an array of interface names for their first argument.

This functionality should be deprecated as "having to use it" is almost always a symptom of bad design. More importantly, though, the support for the creation of test doubles that implement multiple interfaces resulted in code that is hard to maintain.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions