Uses of Interface
org.mockito.MockedStatic

Packages that use MockedStatic
Package
Description
Mockito is a mock library for java - see Mockito class for usage.
  • Uses of MockedStatic in org.mockito

    Methods in org.mockito that return MockedStatic
    Modifier and Type
    Method
    Description
    static <T> MockedStatic<T>
    Mockito.mockStatic(Class<T> classToMock)
    Creates a thread-local mock controller for all static methods of the given class or interface.
    static <T> MockedStatic<T>
    Mockito.mockStatic(Class<T> classToMock, String name)
    Creates a thread-local mock controller for all static methods of the given class or interface.
    static <T> MockedStatic<T>
    Mockito.mockStatic(Class<T> classToMock, MockSettings mockSettings)
    Creates a thread-local mock controller for all static methods of the given class or interface.
    static <T> MockedStatic<T>
    Mockito.mockStatic(Class<T> classToMock, Answer defaultAnswer)
    Creates a thread-local mock controller for all static methods of the given class or interface.
    static <T> MockedStatic<T>
    Mockito.mockStatic(String name, T... reified)
    Creates a thread-local mock controller for all static methods of the given class or interface.
    static <T> MockedStatic<T>
    Mockito.mockStatic(MockSettings mockSettings, T... reified)
    Creates a thread-local mock controller for all static methods of the given class or interface.
    static <T> MockedStatic<T>
    Mockito.mockStatic(Answer defaultAnswer, T... reified)
    Creates a thread-local mock controller for all static methods of the given class or interface.
    static <T> MockedStatic<T>
    Mockito.mockStatic(T... reified)
    Creates a thread-local mock controller for all static methods of the given class or interface.
    static <T> MockedStatic<T>
    Mockito.spyStatic(Class<T> classToSpy)
    Creates a thread-local spy controller for all static methods of the given class or interface.
    static <T> MockedStatic<T>
    Mockito.spyStatic(Class<T> classToSpy, String name)
    Creates a thread-local spy controller for all static methods of the given class or interface.
    static <T> MockedStatic<T>
    Mockito.spyStatic(Class<T> classToSpy, MockSettings mockSettings)
    Creates a thread-local spy controller for all static methods of the given class or interface.
    static <T> MockedStatic<T>
    Mockito.spyStatic(String name, T... reified)
    Creates a thread-local spy controller for all static methods of the given class or interface.
    static <T> MockedStatic<T>
    Mockito.spyStatic(MockSettings mockSettings, T... reified)
    Creates a thread-local spy controller for all static methods of the given class or interface.
    static <T> MockedStatic<T>
    Mockito.spyStatic(T... reified)
    Creates a thread-local spy controller for all static methods of the given class or interface.
    Methods in org.mockito with parameters of type MockedStatic
    Modifier and Type
    Method
    Description
    default void
    InOrder.verify(MockedStatic<?> mockedStatic, MockedStatic.Verification verification)
    Verifies static interaction in order, with exactly one number of invocations.
    void
    InOrder.verify(MockedStatic<?> mockedStatic, MockedStatic.Verification verification, VerificationMode mode)
    Verifies static interaction in order.