I would like the EasyMock layout to wait for an empty list several times, even if items are added to the list that returns for the first time.
Is it possible? Since an empty list created on hold is retained for the entire play and therefore saves any items added to it between calls.
Here is a sample code showing what I'm trying to avoid:
public class FakeTest { private interface Blah { public List<String> getStuff(); }; @Test public void theTest(){ Blah blah = EasyMock.createMock(Blah.class);
source share