A question about EasyMock:

For the following interface:

public interface Dummy {
   void setName(String name);
   String getName();
}

How do I mock the behavior of Dummy so that the getName() always return the latest argument passed from setName()? I don't want to hard-code it in andReturn().

Thanks,
Raymond

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to