logo

Crowdly

Si nous exécutons JUnit sur la classe de test ci-dessous, quel sera l'affichag...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Si nous exécutons JUnit

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 -----");

}

}

More questions like this

Want instant access to all verified answers on cmontmorency.moodle.decclic.qc.ca?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!