Package org.mockito
Class MockMakers
java.lang.Object
org.mockito.MockMakers
Constants for built-in implementations of
MockMaker
.
You may use the constants of this class for MockSettings.mockMaker(String)
or Mock.mockMaker()
.
The string values of these constants may also be used in the resource file mockito-extensions/org.mockito.plugins.MockMaker
as described in the class documentation of MockMaker
.- Since:
- 4.8.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Inline mock maker which can mock final types, enums and final methods.static final String
Proxy mock maker which avoids code generation, but can only mock interfaces.static final String
Subclass mock maker which mocks types by creating subclasses. -
Method Summary
-
Field Details
-
INLINE
Inline mock maker which can mock final types, enums and final methods. This mock maker cannot mock native methods, and it does not supportextra interfaces
.- See Also:
-
PROXY
Proxy mock maker which avoids code generation, but can only mock interfaces.- See Also:
-
SUBCLASS
Subclass mock maker which mocks types by creating subclasses. This is the first built-in mock maker which has been provided by Mockito. Since this mock maker relies on subclasses, it cannot mock final classes and methods.- See Also:
-