为了账号安全,请及时绑定邮箱和手机立即绑定

在命令行中打包失败

-------------------------------------------------------------------------------

Test set: com.imoo.luckymoney.LuckymoneyApplicationTests

-------------------------------------------------------------------------------

Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.119 s <<< FAILURE! - in com.imoo.luckymoney.LuckymoneyApplicationTests

initializationError(com.imoo.luckymoney.LuckymoneyApplicationTests)  Time elapsed: 0.003 s  <<< ERROR!

java.lang.Exception: The class com.imoo.luckymoney.LuckymoneyApplicationTests is not public.


initializationError(com.imoo.luckymoney.LuckymoneyApplicationTests)  Time elapsed: 0.001 s  <<< ERROR!

java.lang.Exception: Test class should have exactly one public constructor


initializationError(com.imoo.luckymoney.LuckymoneyApplicationTests)  Time elapsed: 0.001 s  <<< ERROR!

java.lang.Exception: Method contextLoads() should be public


正在回答

3 回答

The class com.imoo.luckymoney.LuckymoneyApplicationTests is not public.

把类跟方法都声明为public

0 回复 有任何疑惑可以回复我~

http://img1.sycdn.imooc.com//5e610ab70001c91107650335.jpg

你改成这样看看

或者这样

http://img1.sycdn.imooc.com//5e610b1800012a6609570482.jpg

0 回复 有任何疑惑可以回复我~

The class com.imoo.luckymoney.LuckymoneyApplicationTests is not public.

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

在命令行中打包失败

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信