My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 104: Support dynamic expectations in MockPolicies
1 person starred this issue and may be notified of changes. Back to list
 
Project Member Reported by johan.ha...@gmail.com, May 18, 2009
Settings up expectations in mock policies is possible today but you can't
invoke the mock dynamically/lazily. E.g. if setup the following:

expect(myMock.invokeMethod).andReturn(someThing);

we need a way to return "someThing" when the "invokeMethod" is invoked by
the MockGateway. One solution would be to pass an interface (like IAnswer)
to the addSubstituteReturnValue method. If the mock gateway discovers that
the return value is of this type it could invoke a method on this interface
(which returns "someThing") instead of returning it directly.

Sep 11, 2009
Project Member #1 johan.ha...@gmail.com
(No comment was entered for this change.)
Labels: -Milestone-Release1.3 Milestone-Release2.0
Sep 22, 2009
Project Member #2 johan.ha...@gmail.com
(No comment was entered for this change.)
Labels: -Milestone-Release2.0 Milestone-Release1.3
Oct 4, 2009
Project Member #3 johan.ha...@gmail.com
(No comment was entered for this change.)
Labels: -Milestone-Release1.3 Milestone-Release1.4
Mar 10, 2010
Project Member #4 johan.ha...@gmail.com
(No comment was entered for this change.)
Labels: -Milestone-Release1.4 Milestone-Release1.5
Jul 22, 2010
Project Member #5 johan.ha...@gmail.com
(No comment was entered for this change.)
Labels: -Milestone-Release1.5 Milestone-Release1.6
Sign in to add a comment

Powered by Google Project Hosting