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.Expectationsthat provideswithArgalternatives to thewithmethods defined in its superclass.JMockCycle'sexpectingmethod of passes an instance of this class to the function passed intoexpectations. BecauseJMockExpectationsextendsorg.jmock.Expectations, all of theExpectationsmethods are available to be invoked on instances of this class, in addition to several overloadedwithArgmethods defined in this class. ThesewithArgmethods simply invoke correspondingwithmethods onthis. Becausewithis a keyword in Scala, to invoke these directly you must surround them in back ticks, like this:By importing the members of the
JMockExpectationsobject passed to aJMockCycle'sexecutingmethod, you can instead callwithArgwith no back ticks needed:oneOf (mockCollaborator).documentAdded(withArg("Document"))