Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Intellij idea intellij和ResourceBundle_Intellij Idea_Resourcebundle - Fatal编程技术网

Intellij idea intellij和ResourceBundle

Intellij idea intellij和ResourceBundle,intellij-idea,resourcebundle,Intellij Idea,Resourcebundle,我尝试从Intellij运行测试。我测试的方法使用了src/main/resources中的一些属性文件,但在作为JUnit测试运行时,它们似乎被忽略了。当我从eclipse和ant运行它时,它就工作了,但从Intellij运行时就不工作了。如何使我的src/main/resources在Intellij中的测试可见?不知道这是否重要,但在我的项目视图中,测试和主文件夹被视为独立的模块。验证src/main/resources是否在中设置为源或测试源。这些文件夹中的资源将根据设置|编译器|资源模

我尝试从Intellij运行测试。我测试的方法使用了src/main/resources中的一些属性文件,但在作为JUnit测试运行时,它们似乎被忽略了。当我从eclipse和ant运行它时,它就工作了,但从Intellij运行时就不工作了。如何使我的src/main/resources在Intellij中的测试可见?不知道这是否重要,但在我的项目视图中,测试和主文件夹被视为独立的模块。

验证src/main/resources是否在中设置为测试源。这些文件夹中的资源将根据
设置|编译器|资源模式
自动复制到输出路径(类路径)