Package 

Class StaticMockitoSession

  • All Implemented Interfaces:
    org.mockito.MockitoSession

    @UnstableApi() 
    public class StaticMockitoSession
     implements MockitoSession
                        

    Same as MockitoSession but used when static methods are also stubbed.

    • Method Summary

      Modifier and Type Method Description
      void setStrictness(Strictness strictness)
      void finishMocking() Extension: This also resets all stubbing of static methods set up in the builder of the session.
      void finishMocking(Throwable failure) Extension: This also resets all stubbing of static methods set up in the builder of the session.
      • Methods inherited from class org.mockito.MockitoSession

        finishMocking, setStrictness
      • Methods inherited from class java.lang.Object

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

      • finishMocking

         void finishMocking()

        Extension: This also resets all stubbing of static methods set up in the builder of the session.

      • finishMocking

         void finishMocking(Throwable failure)

        Extension: This also resets all stubbing of static methods set up in the builder of the session.