com.alibaba.fastjson test fails (exception: file not found)

4dbbbstv  于 4个月前  发布在  其他
关注(0)|答案(2)|浏览(40)

Exception: java.io.FileNotFoundException: /Users/wenshao/Downloads/000002_0.json (No such file or directory)

fastjson/src/test/java/com/alibaba/fastjson/validate/JSONValidateTest_file.java

Line 19 in 9b8b186

| | Filefile = newFile("/Users/wenshao/Downloads/000002_0.json"); |

fastjson/src/test/java/com/alibaba/fastjson/validate/JSONValidateTest_file.java

Line 31 in 9b8b186

| | Filefile = newFile("/Users/wenshao/Downloads/000002_0.json"); |

fastjson/src/test/java/com/alibaba/fastjson/validate/JSONValidateTest_file.java

Line 53 in 9b8b186

| | Filefile = newFile("/Users/wenshao/Downloads/000002_0.json"); |

mlnl4t2r

mlnl4t2r1#

这个需要你本地目录下有这个文件吧, 你没有这个文件当然报错了

fnvucqvd

fnvucqvd2#

Paths should not be hard-coded like this.

相关问题