📜  junit jupiter 在每次测试之前执行 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:22.957000             🧑  作者: Mango

代码示例2
@BeforeAll
static void setup() {
    log.info("@BeforeAll - executes once before all test methods in this class");
}

@BeforeEach
void init() {
    log.info("@BeforeEach - executes before each test method in this class");
}