EasyMock andReturn() vs andStubReturn()

Viewed 35246

What is the difference between using andReturn(T value) vs andStubReturn(T value) for EasyMock?

In what situation would you use andStubReturn() where andReturn() can't achieve the same result?

2 Answers
Related