@Before 重命名为 @BeforeEach ( @BeforeClass 重命名为 @BeforeAll )。 正如您已经提到的,它们是"在每种测试方法之前执行的"。 因此,这是一个好名字。
確定! 回上一頁