Invokes with
on this instance, passing in the passed matcher.
Invokes with
on this instance, passing in the passed matcher.
Invokes with
on this instance, passing in the passed matcher.
Invokes with
on this instance, passing in the passed matcher.
Invokes with
on this instance, passing in the passed matcher.
Invokes with
on this instance, passing in the passed matcher.
Invokes with
on this instance, passing in the passed matcher.
Invokes with
on this instance, passing in the passed matcher.
Invokes with
on this instance, passing in the passed matcher.
Invokes with
on this instance, passing in the passed value.
Invokes with
on this instance, passing in the passed value.
Invokes with
on this instance, passing in the passed value.
Invokes with
on this instance, passing in the passed value.
Invokes with
on this instance, passing in the passed value.
Invokes with
on this instance, passing in the passed value.
Invokes with
on this instance, passing in the passed value.
Invokes with
on this instance, passing in the passed value.
Invokes with
on this instance, passing in the passed value.
Subclass of
org.jmock.Expectations
that provideswithArg
alternatives to thewith
methods defined in its superclass.JMockCycle
'sexpecting
method of passes an instance of this class to the function passed intoexpectations
. BecauseJMockExpectations
extendsorg.jmock.Expectations
, all of theExpectations
methods are available to be invoked on instances of this class, in addition to several overloadedwithArg
methods defined in this class. ThesewithArg
methods simply invoke correspondingwith
methods onthis
. Becausewith
is a keyword in Scala, to invoke these directly you must surround them in back ticks, like this:By importing the members of the
JMockExpectations
object passed to aJMockCycle
'sexecuting
method, you can instead callwithArg
with no back ticks needed:oneOf (mockCollaborator).documentAdded(withArg("Document"))