Broadcom-VMware
2V0-72.22PSE · Question #73
2V0-72.22PSE Question #73: Real Exam Question with Answer & Explanation
The correct answer is C. Methods annotated with @BeforeAll will run only once before any tests in a class are executed.. See the full explanation below for the reasoning.
Question
Which statements is true?
Options
- AMethods annotated with @AfterEach will run only once before any tests in a class are executed.
- B@BeforeAll annotation can only be used on non-static methods.
- CMethods annotated with @BeforeAll will run only once before any tests in a class are executed.
- D@AfterEach annotation must be used on a cleanup method when @BeforeEach is used.
Community Discussion
No community discussion yet for this question.