So I\'m new to JUnit, and we have to use it for a homework assignment. Our professor gave us a project that has one test class, BallTest.java. When I right clic
BallTest.java
I think you have created your test classes outside the src folder. You can solve above problem by two way:
Add your package name in java build path->source
java build path->source
Move your package/class in src folder
package/class
src
I have the same problem and solved in this way both solutions working fine.