I created a simple Android app (HelloWorld like) an dnow I would add operation to save sample data with mockdao (just a List to manage data). In future, I would persist data in sqlite db.
In Android project I created a simple object structure (a Task) and TaskService to manage list of task.
Now I want to create a junit test. I read that's better to create a new project (Android Test Project). I tried to create a simple android test project and adding my project to this test project. I created a first junit test based on the mockdao but whn I run the project I received this error :
java.lang.ClassNotFoundException: my.package.TaskServiceTest
In my android test project, junit test is in src/my.package.TaskServiceTest
In eclipse project properties, output folder is bin/classes for both.
My Android project is a maven project but not android test project.
Could you help me ?
Thanks