Class DefaultMockitoConfiguration

  • All Implemented Interfaces:
    IMockitoConfiguration

    public class DefaultMockitoConfiguration
    extends java.lang.Object
    implements 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

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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<java.lang.Object> getDefaultAnswer()
      Allows configuring the default answers of un-stubbed invocations
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultMockitoConfiguration

        public DefaultMockitoConfiguration()