Junit + getResourceAsStream Returning Null

后端 未结 13 1425
情话喂你
情话喂你 2020-12-15 03:32

Not sure how this is possible. I re-read up on getResourceAsStream and it\'s always returning null.

InputStream source = this.getClass().getResourceAsStream(         


        
13条回答
  •  没有蜡笔的小新
    2020-12-15 03:34

    Add the folder that your having your resource files in to the source folders of eclipse. Then the file should be automatically put in the bin directory.

提交回复
热议问题