> For the complete documentation index, see [llms.txt](https://bernardo.gitbook.io/development-docs-java/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bernardo.gitbook.io/development-docs-java/testing/mockito/verify-calls.md).

# Verify Calls

## Called once, and only once

```java
Mockito.verify(service, Mockito.times(1)).method(ArgumentMatchers.any());
```

## Called one or more times

```java
Mockito.verify(service, Mockito.atLeastOnce()).method(ArgumentMatchers.any());
```

## Never Called

```java
Mockito.verify(service, Mockito.never()).method(ArgumentMatchers.any());
```

## Called with a specific value

```java
Mockito.verify(response, Mockito.atLeastOnce()).setContentType(
   ArgumentMatchers.same(MediaType.APPLICATION_PDF_VALUE));
```
