Skip to content

Commit

Permalink
Update src/main/java/org/mockito/Mockito.java
Browse files Browse the repository at this point in the history
Co-authored-by: Tim van der Lippe <TimvdLippe@users.noreply.github.com>
  • Loading branch information
raphw and TimvdLippe committed Jul 1, 2020
1 parent a3ba197 commit 72d5b6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/mockito/Mockito.java
Expand Up @@ -1555,9 +1555,9 @@
* <pre class="code"><code class="java">
* assertEquals("foo", Foo.method());
* try (MockedStatic<Foo> mocked = mockStatic(Foo.class)) {
* mocked.when(Foo::method).thenReturn("bar");
* assertEquals("bar", Foo.method());
* mocked.verify(Foo::method);
* mocked.when(Foo::method).thenReturn("bar");
* assertEquals("bar", Foo.method());
* mocked.verify(Foo::method);
* }
* assertEquals("foo", Foo.method());
* </code></pre>
Expand Down

0 comments on commit 72d5b6d

Please sign in to comment.