Mockito Concepts: Difference between revisions
Jump to navigation
Jump to search
(→@Mock) |
|||
Line 14: | Line 14: | ||
* Static methods | * Static methods | ||
* Private methods | * Private methods | ||
* <code>hashCode()</code> and <code>equals()</code> methods | |||
* Anonymous classes | |||
* Primitive types | |||
[[PowerMock]] can mock these constructs. |
Revision as of 04:08, 16 July 2021
Internal
Overview
MockitoJUnitRunner
Mockito.mock()
@Mock
Can't Mock
- Final classes
- Final methods
- Enums
- Static methods
- Private methods
hashCode()
andequals()
methods- Anonymous classes
- Primitive types
PowerMock can mock these constructs.