This class encapsulates an ArgumentCaptor
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) }
Syntactic sugar on top of the ArgumentCaptor API to avoid using classOf and an explicit call to capture()
shortcuts to standard Mockito functions
This trait provides functionalities to declare stub values on method calls.
This trait provides methods to create mocks and spies.
delegate to Mockito static methods with appropriate type inference.