Class DefaultMockitoSession

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finishMocking()
      Must be invoked when the user is done with mocking for given session (test method).
      void finishMocking​(java.lang.Throwable failure)
      Must be invoked when the user is done with mocking for given session (test method).
      private void release()  
      void setStrictness​(Strictness strictness)
      Changes the strictness of this MockitoSession.
      • Methods inherited from class java.lang.Object

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

      • name

        private final java.lang.String name
      • closeables

        private final java.util.List<java.lang.AutoCloseable> closeables
    • Constructor Detail

      • DefaultMockitoSession

        public DefaultMockitoSession​(java.util.List<java.lang.Object> testClassInstances,
                                     java.lang.String name,
                                     Strictness strictness,
                                     MockitoLogger logger)