[spring]xxx does not support filtering and will therefore be run completely


【問題描述】

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;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM