Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Support Mockito verifications #27

Description

@An-Nadein

Goal: Treat Mockito.verify* calls as verifications

Home Site: https://site.mockito.org/
All verifications are done by org.mockito.Mockito.verify(...) call

verify(): to check methods were called with given arguments
can use flexible argument matching, for example any expression via the any()
or capture what arguments were called using @captor instead

Acceptance Criteria:

Example 1:

import static org.mockito.Mockito.*;

// mock creation
List mockedList = mock(List.class);

// using mock object - it does not throw any "unexpected interaction" exception
mockedList.add("one");
mockedList.clear();

// selective, explicit, highly readable verification
verify(mockedList).add("one");
verify(mockedList).clear();

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions