@Test 注解需要导入包:有两种: 第一种 import org.junit.jupiter.api.Test; 这种不需要在测试类前面加@RunWith()注解 第二种 import org.junit.Test; 这种需要在测试类前面加@RunWith()注解 导入的包和使用方式对应不上就会出现问题