【问题描述】

org.junit.vintage.engine.descriptor.RunnerTestDescriptor warnAboutUnfilterableRunner
警告: Runner org.junit.internal.runners.ErrorReportingRunner (used on class com.example.shardingspheredemo.service.UserServiceTest) does not support filtering and will therefore be 
run completely.

【问题分析】

junit版本对应错误 你在pom里的junit和@Test的junit版本不一致 在@Test时选择maven下的版本就可以了,不要选带api的,还有SpringJUnit4ClassRunner只支持4.12版本及以上

 

【解决方案】

将引入的org.junit.jupiter.api.Test;这个包替换成org.junit.Test;

相关文章:

  • 2021-05-12
  • 2022-12-23
  • 2021-08-01
  • 2021-06-08
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
猜你喜欢
  • 2021-09-28
  • 2021-09-17
  • 2021-08-20
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案