✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
sur la classe de test ci-dessous, quel sera l'affichage au terminal?
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.*;
class DummyTest {
DummyTest() {
System.out.println("----- CT -----");
}
@BeforeAll
static void setUpBeforeClass() {
System.out.println("----- BA -----");
}
@AfterAll
static void tearDownAfterClass() {
System.out.println("----- AA -----");
}
@BeforeEach
void setUp() {
System.out.println("----- BE -----");
}
@AfterEach
void tearDown() {
System.out.println("----- AE -----");
}
@Test
void test1() {
System.out.println("----- T1 -----");
}
void test2() {
System.out.println("----- T2 -----");
}
@Test
void test3() {
System.out.println("----- T3 -----");
}
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!