|
|
|
Created:
17 years, 4 months ago by iczechowski Modified:
2 years, 2 months ago Reviewers:
szczepiq Base URL:
http://mockito.googlecode.com/svn/trunk Visibility:
Public. |
MockHandler currently calls these 2 methods in quick succession when
providing the stubbed result for an invocation:
mockitoStubber.hasResultFor(invocation)
mockitoStubber.getResultFor(invocation)
Unfortunately this involves duplication of work, because both methods call
findMatch(invocation), which in turn will search *all* of the stubbed
invocations against this mock instance. The search is performed twice, when
it only needs to be performed once.
See: http://code.google.com/p/mockito/issues/detail?id=19
Patch Set 1 #
Total messages: 1
|
iczechowski
|
17 years, 4 months ago (2008年08月18日 15:57:26 UTC) #1 | |||||||||||||||||||