public class ClassPathLoader
extends java.lang.Object
org.mockito.configuration.MockitoConfiguration
that implements
IMockitoConfiguration
. For example :
package org.mockito.configuration;
//...
public class MockitoConfiguration implements IMockitoConfiguration {
boolean enableClassCache() { return false; }
// ...
}
MockMaker
. This extension point allows a user to provide his own bytecode engine to build mocks.
org.awesome.mockito.AwesomeMockMaker
.org.mockito.plugins.MockMaker
in a folder named
mockito-extensions
, the content of this file need to have one line with
the qualified name org.awesome.mockito.AwesomeMockMaker
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MOCKITO_CONFIGURATION_CLASS_NAME |
Constructor and Description |
---|
ClassPathLoader() |
Modifier and Type | Method and Description |
---|---|
static MockMaker |
getMockMaker()
Returns the implementation of the mock maker available for the current runtime.
|
static StackTraceCleanerProvider |
getStackTraceCleanerProvider() |
IMockitoConfiguration |
loadConfiguration() |
public static final java.lang.String MOCKITO_CONFIGURATION_CLASS_NAME
public IMockitoConfiguration loadConfiguration()
public static MockMaker getMockMaker()
Returns CglibMockMaker
if no
MockMaker
extension exists or is visible in the current classpath.
public static StackTraceCleanerProvider getStackTraceCleanerProvider()