JAVA 编写测试类出现的问题(一)Cannot instantiate test(s): java.lang.SecurityException: Prohibited package name: java.com.study

Cannot instantiate test(s): java.lang.SecurityException: Prohibited package name: java.com.study

是在测试包:包名出现了java.com.study,以 java开头了,应该改为 java.com.study 把Java去掉 就可以了写测试类了。

posted @ 2022-03-28 15:26  —阿峰—  阅读(406)  评论(0编辑  收藏  举报