Cant import src/main/java classes into src/test/java jUnit tests in maven-spring-web project. IDE - Eclipse -
i'm working on maven-spring-web project in eclipse. getting problem working junit tests, seems me configuration issue.
project structure: src > main > java : business logic goes here src > test > java : junit test cases parked here.
the trouble imports not working when im trying import business logic classes src>main>java junit test cases. reason physical folder structure :
business logic classes : project_root > src > main > java test cases classes : project_root > src > test > java
i've tried cleaning, putting testresources directory in pom. dont want add classes folder in classpath. pls advise.
by default maven uses following naming conventions when looking tests run:
test*
*test
*testcase
your test class doesn't follow these conventions.
Comments
Post a Comment