Class GlobalConfiguration
java.lang.Object
org.mockito.internal.configuration.GlobalConfiguration
- All Implemented Interfaces:
Serializable
,IMockitoConfiguration
Thread-safe wrapper on user-defined org.mockito.configuration.MockitoConfiguration implementation
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
This 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)boolean
Allow objenesis to cache classes.Allows configuring the default answers of un-stubbed invocationsstatic void
validate()
-
Constructor Details
-
GlobalConfiguration
public GlobalConfiguration()
-
-
Method Details
-
validate
public static void validate() -
tryGetPluginAnnotationEngine
-
cleansStackTrace
public boolean cleansStackTrace()Description copied from interface:IMockitoConfiguration
This 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:
cleansStackTrace
in interfaceIMockitoConfiguration
- Returns:
- if Mockito should clean stack traces
-
enableClassCache
public boolean enableClassCache()Description copied from interface:IMockitoConfiguration
Allow 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:
enableClassCache
in interfaceIMockitoConfiguration
-
getDefaultAnswer
Description copied from interface:IMockitoConfiguration
Allows configuring the default answers of un-stubbed invocationsSee javadoc for
IMockitoConfiguration
- Specified by:
getDefaultAnswer
in interfaceIMockitoConfiguration
-