cloud1105 / mockito

Automatically exported from code.google.com/p/mockito
0 stars 0 forks source link

Mockito+Dexmaker is not working in Android test project #488

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add mockito-all-1.9.5.jar,dexmaker-1.0.jar,dexmaker-mockito-1.0.jar into 
android test project libs folder
2. Add three files into Build Path
3. One code like :  MyClass d = mock(MyClass.class);
3. Run Android JUnit Test

What is the expected output? What do you see instead?
Tests should run well, But :
The error message:
java.lang.NoClassDefFoundError: org.mockito.Mockito

What version of the product are you using? On what operating system?
Tools: Google ADT (Eclipse)
Android version: 2.2

Please provide any additional information below.

Original issue reported on code.google.com by bruce...@gmail.com on 15 Apr 2014 at 1:57

GoogleCodeExporter commented 8 years ago
Hi you should reprot this on the dexmaker project. We are not working on 
android.

Anyway with such an error I strong believes there's an issue somewhere in the 
classpath, if Mockito class is no found.

Original comment by brice.du...@gmail.com on 21 Apr 2014 at 4:33