org.specs2.mock

mockito

package mockito

Visibility
  1. Public
  2. All

Type Members

  1. class ArgumentCapture [T] extends AnyRef

    This class encapsulates an ArgumentCaptor

  2. trait CalledMatchers extends NumberOfTimes with TheMockitoMocker with Expectations

    This trait provides methods to declare expectations on mock calls: there was one(mockedList).get(0) there was no(mockedList).get(0) there was two(mockedList).get(0) there was three(mockedList).get(0) there was 4.times(mockedList).get(0) there was atLeastOne(mockedList).get(0) there was atLeastTwo(mockedList).get(0) there was atLeastThree(mockedList).get(0) there was atLeast(4)(mockedList).get(0) there was atMostOne(mockedList).get(0) there was atMostTwo(mockedList).get(0) there was atMostThree(mockedList).get(0) there was atMost(4)(mockedList).get(0) It is also possible to use a different wording: there were two(mockedList).get(0) got { two(mockedList).get(0) }

  3. trait CapturedArgument extends AnyRef

    Syntactic sugar on top of the ArgumentCaptor API to avoid using classOf and an explicit call to capture()

  4. trait MockitoFunctions extends TheMockitoMocker

    shortcuts to standard Mockito functions

  5. trait MockitoMatchers extends AnyRef

  6. trait MockitoStubs extends MocksCreation

    This trait provides functionalities to declare stub values on method calls.

  7. trait MocksCreation extends TheMockitoMocker with ClassesOf

    This trait provides methods to create mocks and spies.

  8. trait NumberOfTimes extends AnyRef

  9. trait TheMockitoMocker extends AnyRef

    delegate to Mockito static methods with appropriate type inference.