@BeforeClass – 表示在类中的任意public static void方法执行之前执行

@AfterClass – 表示在类中的任意public static void方法执行之后执行

@Before – 表示在任意使用@Test注解标注的public void方法执行之前执行

@After – 表示在任意使用@Test注解标注的public void方法执行之后执行

@Test – 使用该注解标注的public void方法会表示为一个测试方法

 

相关文章:

  • 2021-10-30
  • 2022-12-23
  • 2021-09-04
  • 2021-06-20
  • 2022-03-08
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
猜你喜欢
  • 2021-09-23
  • 2021-05-19
  • 2021-11-19
  • 2022-12-23
  • 2021-08-29
  • 2021-05-13
相关资源
相似解决方案