vendredi 11 septembre 2015

How to use EasyMock In unitTest

I am new with EasyMock In unitTest.

I have a case like this

EasyMock.expect(serviceUnderTest.functionABC(param)).andReturn("123"); EasyMock.replay(contantsUnderTest);

This one only effect for the specific param, how can i impl like this: no matter what param we input, if the fuctionABC in serviceUnderTest was called, it will return 123?

Thank you very much

Aucun commentaire:

Enregistrer un commentaire