Package org.mockito.stubbing


package org.mockito.stubbing
External stubbing related classes
  • Interfaces
    Class
    Description
    Generic interface to be used for configuring mock's answer.
    Stubs a method call with return value or an exception.
    Simply put: "When the x method is called then return y".
    Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
    Stubs void method with an exception.