You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* optionally specify how it should behave via [`Answer`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/stubbing/Answer.html)/[`MockSettings`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/MockSettings.html)
13
-
*[`when()`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#when-T-)/[`given()`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/BDDMockito.html#given-T-) to specify how a mock should behave
14
-
* If the provided answers don't fit your needs, write one yourself extending the [`Answer`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/stubbing/Answer.html) interface
* optionally specify how it should behave via [`Answer`](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/stubbing/Answer.html)/[`MockSettings`](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/MockSettings.html)
13
+
*[`when()`](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#when(T))/[`given()`](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/BDDMockito.html#given(java.lang.Object)) to specify how a mock should behave
14
+
* If the provided answers don't fit your needs, write one yourself extending the [`Answer`](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/stubbing/Answer.html) interface
partial mocking, real methods are invoked but still can be verified and stubbed
17
-
*[`@InjectMocks`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/InjectMocks.html): automatically inject mocks/spies fields annotated with `@Spy` or `@Mock`
18
-
*[`verify()`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#verify-T-): to check methods were called with given arguments
19
-
* can use flexible argument matching, for example any expression via the [`any()`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/ArgumentMatchers.html#any--)
20
-
* or capture what arguments were called using [`@Captor`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Captor.html) instead
21
-
* Try Behavior-Driven development syntax with [BDDMockito](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/BDDMockito.html)
17
+
*[`@InjectMocks`](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/InjectMocks.html): automatically inject mocks/spies fields annotated with `@Spy` or `@Mock`
18
+
*[`verify()`](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#verify-T-): to check methods were called with given arguments
19
+
* can use flexible argument matching, for example any expression via the [`any()`](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/ArgumentMatchers.html#any--)
20
+
* or capture what arguments were called using [`@Captor`](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Captor.html) instead
21
+
* Try Behavior-Driven development syntax with [BDDMockito](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/BDDMockito.html)
22
22
* Use Mockito on Android, thanks to the team working on [dexmaker](https://github.com/crittercism/dexmaker)
23
23
24
24
## Remember
@@ -28,7 +28,7 @@ fa-icon: book
28
28
* Don't mock everything
29
29
* Show love with your tests!
30
30
31
-
Click [here](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html) for more documentation and examples.
31
+
Click [here](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html) for more documentation and examples.
32
32
All documentation lives in javadocs so you don’t need to visit that page too often.
33
33
There is also a [RefCard](https://dzone.com/refcardz/mockito).
0 commit comments