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.
Loading...
Related Quiz
- How would you implement a custom error response structure when an exception occurs in a Spring Boot application?
- The _____ plugin in a Spring Boot project's build file allows creating an executable JAR or WAR file.
- You have a requirement to validate an object graph with nested objects and associations using JSR-303 Bean Validation. How would you achieve this, ensuring that the entire object graph is validated?
- In Spring Cloud, how can you enable a service to register itself with Eureka Server?
- Which Spring Cloud component is primarily used for service discovery in a microservices architecture?