|
From: Nat P. <nat...@b1...> - 2003-06-29 08:59:04
|
That method is missing in 0.09. In my branch there is a method matchVoid(
String, Object ) [and overloads] that does what you want. However, I would
not advise using that branch in a production project.
Cheers,
Nat.
_______________________
Dr. Nathaniel Pryce
B13media Ltd.
http://www.b13media.com
+44 (0)7712 526 661
----- Original Message -----
From: "Francois Beausoleil" <fb...@us...>
To: <moc...@li...>
Sent: Sunday, June 29, 2003 2:47 AM
Subject: [MO-java-dev] How to match and not return ?
Hi !
I need functionnality equivalent to expect(String, Object), but for
match(). Currently, in 0.09, there are matchAndReturn methods, but no
simple match(String). In this specific test instance, it does not matter
how many times I call method X as it has been asserted elsewhere that the
correct number of calls is made.
Instead of:
mock.expect("eat", C.ANY_ARGS);
I would like:
mock.match("eat", C.ANY_ARGS);
This is something like the nice mock feature I spoke about a few weeks
back. What I want is no exception if I call the method 100 times or 10
times.
Thanks !
François
--
Francois Beausoleil
Developer of Java Gui Builder
http://jgb.sourceforge.net/
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Mockobjects-java-dev mailing list
Moc...@li...
https://lists.sourceforge.net/lists/listinfo/mockobjects-java-dev
|