I have an Android project, which uses Maven. Originally, it worked fine with Eclipse (ADT).
But then I added a unit test and moved the source code from src
to src/main/java
directory and put my unit tests into src/test/java
folder.
Thereafter Eclipse started to complain about wrong package names and refuses to run/debug my unit tests.
I tried to fix the problem by adding src/main/java
and src/test/java
to Java source path.
But this didn't help, I still can't run unit tests.
How can I fix this?