Hi,
Here is an enhancement idea which would help me and maybe make
the mockobjects framework more versatile.
Instead of having the addExpected(key, value) method only
available in the ExpectationMap class, could we have an
addExpected(key, value) method also in the ExpectationList
class, where two Lists are used for the key and value,
respectively, instead of a Map (Also, perhaps the key and value
nomenclature would need to be adjusted, like input and
response)?
This is driven by the situation where a test requires a
mockObject that must return results for various inputs, whereby
the inputs/results relationship is order-dependant. For
example, the same input could be specified two times, and I
might require a specific result on the 2nd occurance that is
different from the 1st occurance of the input.
Ideally I could express my idea best by putting some unit-tests
together illustrating my issue. I fear this is a bit beyond me
at present, but hope to get there eventually.
comments?
thanks
Stephen Peterson
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
|