org.junit.jupiter.api.Test;包中的@Test注解为5.0+ 要用@BeforeEach注解。
org.junit.Test;包中的@Test注解为4.0+,用@Before注解
Springboot测试类中 @Before与@BeforeEach的区别
最新推荐文章于 2023-07-28 07:46:50 发布
org.junit.jupiter.api.Test;包中的@Test注解为5.0+ 要用@BeforeEach注解。
org.junit.Test;包中的@Test注解为4.0+,用@Before注解