The _____ annotation in JUnit is used to indicate that a method should be executed after all tests in the current test class have been run.

  • @After
  • @AfterAll
  • @AfterClass
  • @BeforeClass
In JUnit, the @AfterClass annotation is used to indicate that a method should be executed after all tests in the current test class have been run. This is often used for cleanup tasks after running a suite of tests.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *