I have simple question. I have structure of classes like this: base class and child class(relationship is inheritance). @BeforeAll is from JUnit5.
abstract class Base {
static{
System.out.println("A");
}
@BeforeAll
public static void setUp() {
System.out.println("B");
}
}
class Child extends Base {
static {
System.out.println("C");
}
@Test
public void test() {
System.out.println("D");
}
}
So, In my opinion, the order of execution should be: ACBD but, this look like : ABCD I was searching information, but I could not find anyting about it.