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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -