Mockito: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
=External=
* http://site.mockito.org
* http://site.mockito.org
* https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html
* GitHub https://github.com/mockito/mockito
* https://github.com/mockito/mockito/wiki
* https://github.com/mockito/mockito/wiki
* https://www.baeldung.com/mockito-series
* https://www.baeldung.com/mockito-series
Line 8: Line 10:
* [[Software Testing Concepts#Internal|Software Testing]]
* [[Software Testing Concepts#Internal|Software Testing]]
* [[PowerMock]]
* [[PowerMock]]
* [[JUnit#Overview|JUnit]]
* [[Hamcrest]]


=Overview=
The Mockito framework streamlines the creation and management of external dependencies, and provides an API to create [[Software_Testing_Concepts#Mock|mock objects]]. It uses proxy objects to verify the invocation and stub calls.
=Distributions=
=Distributions=
==<tt>mockito-core</tt>==
==<tt>mockito-core</tt>==
<syntaxhighlight lang='groovy'>
<syntaxhighlight lang='groovy'>
dependencies {
dependencies {
     implementation 'org.mockito:mockito-core:3.11.2'
     testImplementation 'org.mockito:mockito-core:3.11.2'
}
}
</syntaxhighlight>
</syntaxhighlight>
 
==<tt>mockito-all</tt>==
=Playground=
=Subjects=
* [[Mockito Concepts|Concepts]]
* [[Mockito Programming Model|Programming Model]]
* [[Spring_Boot_Mockito_Support|Spring Boot Mockito Support]]

Latest revision as of 01:03, 3 October 2021