NutzCN Logo
问答 求问基于maven的juint测试问题
发布于 2941天前 作者 duanfuan6 1601 次浏览 复制 上一个帖子 下一个帖子
标签:

如题 按照文档如何运行 基于 Maven 的 JUnit 测试 之后
报错
Caused by: java.lang.RuntimeException: Fail to set '[nutz-test.properties]'[ [Lj
ava.lang.String;@4df91958 ] by setter org.nutz.ioc.impl.PropertiesProxy.'setPath
s()' because [java.lang.RuntimeException: folder or file like '^.+[.]properties$
' no found in nutz-test.properties]: folder or file like '^.+[.]properties$' no
found in nutz-test.properties
如图
11_png
报错是在PropertiesProxy类的
List resources = Scans.me().loadResource("^.+[.]properties$", path); 这一句

求问 是我哪里配置文件弄错了吗?

3 回复

放在test目录下才可以

重新测试了.无论是把这两个文件放在test下 还是把properties文件夹放在test下 都还是一样的错误

感谢解答 已解决

添加回复
请先登陆
回到顶部