Package org.mockito
Class MockMakers
- java.lang.Object
-
- org.mockito.MockMakers
-
public final class MockMakers extends Object
Constants for built-in implementations ofMockMaker
. You may use the constants of this class forMockSettings.mockMaker(String)
orMock.mockMaker()
. The string values of these constants may also be used in the resource filemockito-extensions/org.mockito.plugins.MockMaker
as described in the class documentation ofMockMaker
.- Since:
- 4.8.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
INLINE
Inline mock maker which can mock final types, enums and final methods.static String
PROXY
Proxy mock maker which avoids code generation, but can only mock interfaces.static String
SUBCLASS
Subclass mock maker which mocks types by creating subclasses.
-
-
-
Field Detail
-
INLINE
public static final String 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
.
-
PROXY
public static final String PROXY
Proxy mock maker which avoids code generation, but can only mock interfaces.
-
SUBCLASS
public static final String 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:
- Constant Field Values
-
-