警告: Runner org.junit.internal.runners.ErrorReportingRunner (used on class com.boy.community.CommunityApplicationTests) does not support filtering and will therefore be run completely.

错误:

错误原因分析:@Test有两个包,一个是org.junit.jupiter.api.Test,另一个是org.junit.Test,而测试需要的Junit是org.junit.Test
解决方法:import org.junit.jupiter.api.Test换成import org.junit.Test;

posted @ 2020-12-03 10:02  白马王子四海为家  阅读(1351)  评论(0)    收藏  举报