[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;
----------------------------------------------------------------------------
我的小鱼你醒了,
还认识早晨吗?
昨夜你曾经说,
愿夜幕永不开启。
你的香腮边轻轻滑落的,
是你的泪,还是我的泪?
初吻吻别的那个季节,
不是已经哭过了吗?
我的指尖还记忆着,
你慌乱的心跳。
温柔的体香里,
那一缕长发飘飘。