Given the following test class:
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
internal class BetaTest {
@BeforeAll
fun method3() {
println("Hello")
}
@AfterAll
fun method4() {
println("Hello")
}
@BeforeEach
fun method2() {
println("Hello")
}
@AfterEach
fun method5() {
println("Hello")
}
@Test
fun method6() {
println("Hello")
}
@Test
fun method7() {
println("Hello")
}
}
How many times will the word "Hello" be printed?