IntelliJ can't find classpath test resource

后端 未结 7 841
你的背包
你的背包 2020-12-02 14:18

I\'m having a problem where IntelliJ 13.1.4, when running a unit test, can\'t find a ServiceLoader file in the src/test/resources directory of my m

相关标签:
7条回答
  • 2020-12-02 14:56

    When I was running into the same issue, it worked for me to once unmark the resources directory as resources root and then mark it again as resources root:

    1. Right click on resources folder > Mark directory as ... > Unmark as Resources Root
    2. Right click on resources folder > Mark directory as ... > Test Resources Root
    0 讨论(0)
提交回复
热议问题