Oct 08

How do I mock a concrete class using EasyMock?

java Comments Off on How do I mock a concrete class using EasyMock?

You need to use the EasyMock class extension and replace:

import static org.easymock.EasyMock.*;

with

import static org.easymock.classextension.EasyMock.*;

You can then create a mock of your concrete class using:

MyConcreteClass mock = createMock(MyConcreteCless.class);

written by objects \\ tags: , ,