java.lang.Object
org.mockito.configuration.DefaultMockitoConfiguration
- All Implemented Interfaces:
IMockitoConfiguration
DefaultConfiguration of Mockito framework
Currently it doesn't have many configuration options but it will probably change if future.
See javadocs for IMockitoConfiguration on info how to configure Mockito
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis should be turned on unless you're a Mockito developer and you wish to have verbose (read: messy) stack traces that only few understand (eg: Mockito developers)booleanAllow objenesis to cache classes.Allows configuring the default answers of un-stubbed invocations
-
Constructor Details
-
DefaultMockitoConfiguration
public DefaultMockitoConfiguration()
-
-
Method Details
-
getDefaultAnswer
Description copied from interface:IMockitoConfigurationAllows configuring the default answers of un-stubbed invocationsSee javadoc for
IMockitoConfiguration- Specified by:
getDefaultAnswerin interfaceIMockitoConfiguration
-
cleansStackTrace
public boolean cleansStackTrace()Description copied from interface:IMockitoConfigurationThis should be turned on unless you're a Mockito developer and you wish to have verbose (read: messy) stack traces that only few understand (eg: Mockito developers)See javadoc for
IMockitoConfiguration- Specified by:
cleansStackTracein interfaceIMockitoConfiguration- Returns:
- if Mockito should clean stack traces
-
enableClassCache
public boolean enableClassCache()Description copied from interface:IMockitoConfigurationAllow objenesis to cache classes. If you're in an environment where classes are dynamically reloaded, you can disable this to avoid classcast exceptions.- Specified by:
enableClassCachein interfaceIMockitoConfiguration
-