Resource files not found from JUnit test cases

前端 未结 6 2098
无人及你
无人及你 2020-12-24 04:45

Summary

My JUnit tests are not finding the files they require during execution. I\'m using Maven for dependency management and compilation.

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-24 05:00

    Main classes should be under src/main/java
    and
    test classes should be under src/test/java

    If all in the correct places and still main classes are not accessible then
    Right click project => Maven => Update Project
    Hope so this will resolve the issue

提交回复
热议问题