weixin_慕UI9059703
2020-01-14 16:22
-------------------------------------------------------------------------------
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
The class com.imoo.luckymoney.LuckymoneyApplicationTests is not public.
把类跟方法都声明为public
你改成这样看看
或者这样
The class com.imoo.luckymoney.LuckymoneyApplicationTests is not public.
2小时上手SpringBoot
11882 学习 · 115 问题
相似问题