Skip to content

Adding a UniversalMocker.validateAllMocks() api to prevent user error #4

@surajp

Description

@surajp

I am thinking of adding a UniversalMocker.validateAllMocks() that can be used to validate if all mocks have been properly used. Since the api is more verbose than needed, in favor of readability, there is a potential for developers to unintentionally leave method calls incomplete. (eg: mock.assertThat().method('methodname')) . This call would insulate developers against such errors. Comments welcome

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions