报错信息: java.lang.Exception: No tests found matching Method testAdd(com.study.learn.service.impl.studyTest) from org.junit.internal.requests.ClassRequest@de3a06f
JUnit报错:java.lang.Exception: No tests found matching Method
报错信息:java.lang.Exception: No tests found matching Method testAdd(com.study.learn.service.impl.studyTest) from org.junit.internal.requests.ClassRequest@de3a06f对Service代码写了单测,在运行时,爆出以上错误,大概意思就是没有找到test方法,后来发现是自己不细心,没有写@Test注解,导致以上报错,加上@Test注解后,单测正常运行。