Package org.mockito
Class MockMakers
- java.lang.Object
-
- org.mockito.MockMakers
-
public final class MockMakers extends java.lang.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 java.lang.String
INLINE
Inline mock maker which can mock final types, enums and final methods.static java.lang.String
PROXY
Proxy mock maker which avoids code generation, but can only mock interfaces.static java.lang.String
SUBCLASS
Subclass mock maker which mocks types by creating subclasses.
-
Constructor Summary
Constructors Modifier Constructor Description private
MockMakers()
-
-
-
Field Detail
-
INLINE
public static final java.lang.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 java.lang.String PROXY
Proxy mock maker which avoids code generation, but can only mock interfaces.
-
SUBCLASS
public static final java.lang.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
-
-