Junit4

JUnit 4 JUnit 4:https://junit.org/junit4/ JUnit 5:https://junit.org/junit5/ 注解 注解 描述 @Test 修饰测试方法 @Before 修饰的方法在类中的每一个测试以前执行 @BeforeClass 修饰静态方法,在类中的每一个测试以前执行 @After 修饰的方法在类中的每一个测试以后执行 @AfterClass 修饰静
相关文章
相关标签/搜索