I have a maven project in eclipse with a folder structure are follows -
- Project
> src/main/java ..
> src/test/java ..
I found that when I try to initialize any class in the test package from my code in the main package I get a classNotFoundException.
I want to know why this happens and what is the reason for not allowing access to test classes from the main package ?