unit testing - How to use EasyMock in android -


i use easymock-3.2.jar in android test project. find in home:

2013-07-11: easymock 3.2 available. add @mock annotations , android support. 

however , got exception when use it.

java.lang.noclassdeffounderror: org.easymock.easymock

i googled lot , , add

dexmaker-1.0.jar objenesis-1.2.jar cglib-nodep-2.2.2.jar or cglib-2.2.jar 

but exception still there.who can me? lot.

put library

easymock-3.2.jar dexmaker-1.0.jar dexmaker-mockito-1.0.jar 

in tests/libs. , work.

be careful , it's in tests/libs , not in tests/lib. throw

java.lang.noclassdeffounderror: org.easymock.easymock 

if position them in tests/lib.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -