I'm using Easymock with junit for writing my unit tests. I have seen different tests following different methods to create mock objects.
Is there any difference between Easymock.createMock() and @Mock annotation ?
Obj obj = EasyMock.createMock(Obj.class);
and
@Mock
private Obj obj;
Is there any difference between the two ?
Aucun commentaire:
Enregistrer un commentaire