class supporting 'was' and 'were' methods to forward mockito calls to the CallsMatcher matcher
class providing a apply method to be able to declare a number of calls: 3.
class defining a then method to declare that calls must be made in a specific order.
at least n calls made to the mock
at least 1 call made to the mock
at least 3 calls made to the mock
at least 2 calls made to the mock
at most n calls made to the mock
at most 1 call made to the mock
at most 3 calls made to the mock
at most 2 calls made to the mock
A value can be tested against another with the === operator.
A value can be tested against another with the === operator. It is equivalent to writting a must_== b
this method can be overriden to throw exceptions when checking the match result
this method can be overriden to throw exceptions when checking the match result
this method can be overriden to throw exceptions when checking the result
this method can be overriden to throw exceptions when checking the result
an Expectable with a description function
an Expectable with a description function
an Expectable with a description
an Expectable
describe a value with the aka method
describe a value with the aka method
alias for 'there was'
This implicit definition allows to declare a number of times
3.times
This implicit definition allows to declare a number of times
3.times
no call made to the mock
no more calls made to the mock
one call only made to the mock
implicit definition to be able to declare a number of calls 3.
implicit definition to be able to declare a number of calls 3.times(m).clear()
create an object supporting 'was' and 'were' methods
three calls only made to the mock
implicit def supporting calls in order
implicit def supporting calls in order
two calls only made to the mock
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) }