Interface VerificationStartedEvent

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object getMock()
      The mock object that will be used during verification.
      void setMock​(java.lang.Object mock)
      Replaces existing mock object for verification with a different one.
    • Method Detail

      • setMock

        @Incubating
        void setMock​(java.lang.Object mock)
        Replaces existing mock object for verification with a different one. Needed for very advanced framework integrations. For all the details, including how and why see VerificationStartedListener.

        If this method is used to replace the mock the sibling method getMock() will return the new value. CAVEAT: if setMock(Object) is invoked multiple times from one or many listeners the sibling method getMock() will return mock that was set by most recent invocation of setMock(Object).

        Parameters:
        mock - to be used for verification.
        Since:
        2.11.0