|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mockito.internal.configuration.ClassPathLoader
public class ClassPathLoader
Loads configuration or extension points available in the classpath.
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
.
Field Summary | |
---|---|
static java.lang.String |
MOCKITO_CONFIGURATION_CLASS_NAME
|
Constructor Summary | |
---|---|
ClassPathLoader()
|
Method Summary | |
---|---|
static MockMaker |
getMockMaker()
Returns the implementation of the mock maker available for the current runtime. |
static StackTraceCleanerProvider |
getStackTraceCleanerProvider()
|
IMockitoConfiguration |
loadConfiguration()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MOCKITO_CONFIGURATION_CLASS_NAME
Constructor Detail |
---|
public ClassPathLoader()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |