记录:试手写个测试类报错:junit.framework.AssertionFailedError: No tests found in com.ruoyi.quartz.util.MathTest
前提:用到的jar包
- junit.4.12
- hamcrest-core.1.3
test文件夹和src文件夹同级,并把test文件夹标注为Test Sources Root 一定不要标记错!!!
解决:除了要在测试类上加上@Test注解之外,类命名应为test+测试类名,如下: