Subclass of org.jmock.Expectations
that provides withArg
alternatives to the with
methods defined in its superclass.
JMockCycle
's expecting
method of passes an instance of this class
to the function passed into expectations
. Because JMockExpectations
extends org.jmock.Expectations
, all of the Expectations
methods are
available to be invoked on instances of this class, in addition to
several overloaded withArg
methods defined in this class. These withArg
methods simply
invoke corresponding with
methods on this
. Because with
is
a keyword in Scala, to invoke these directly you must surround them in back ticks, like this:
oneOf (mockCollaborator).documentAdded(with
("Document"))
By importing the members of the JMockExpectations
object passed to
a JMockCycle
's executing
method, you can
instead call withArg
with no back ticks needed:
oneOf (mockCollaborator).documentAdded(withArg("Document"))
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 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.
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: