public class DefaultMockitoConfiguration extends Object implements IMockitoConfiguration
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 and Description |
---|
DefaultMockitoConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
cleansStackTrace()
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 |
enableClassCache()
Allow objenesis to cache classes.
|
Answer<Object> |
getDefaultAnswer()
Allows configuring the default answers of unstubbed invocations
|
public Answer<Object> getDefaultAnswer()
IMockitoConfiguration
See javadoc for IMockitoConfiguration
getDefaultAnswer
in interface IMockitoConfiguration
public boolean cleansStackTrace()
IMockitoConfiguration
See javadoc for IMockitoConfiguration
cleansStackTrace
in interface IMockitoConfiguration
public boolean enableClassCache()
IMockitoConfiguration
enableClassCache
in interface IMockitoConfiguration