0
有沒有一種簡單的方法可以用EasyMock做類似的事情?期待EasyMock中的其他參數
Object a, b, c;
expect(a.getB("string1")).andReturn(a).anyTimes();
expect(a.getB("string2")).andReturn(b).anyTimes();
expect(a.getB(<ANYTHING_ELSE>)).andReturn(c).anyTimes();
還是應該實施我自己的IArgumentMatcher
的實現?