Verify @AfterAll method runs once after all tests
Preconditions (2)
Step 1: Create a test class with at least two test methods annotated with @Test
Step 2: Add a static method annotated with @AfterAll
Step 3: Inside the @AfterAll method, set a static boolean flag to true
Step 4: Run the test class
Step 5: Verify that the @AfterAll method was executed exactly once after all tests
✅ Expected Result: The @AfterAll method runs once after all test methods complete, and the static flag is set to true