allows to use a hamcrest matchers to match parameters.
allows to use a hamcrest matchers to match parameters.
allows to use a specs matcher to match parameters by encapsulating it as a Hamcrest matcher.
allows to use a specs matcher to match parameters by encapsulating it as a Hamcrest matcher.
This trait allows to specify functions as arguments in mocked methods.
It uses a pair of (arguments, expected result) to specify what was the passed function:
function2.call((i:Int, d: Double) => (i + d).toString) there was one(function2).call((1, 3.0) -> "4.0")
anyFunctionN will just match any function with n arguments