Which annotation is used to denote a test method in JUnit?
- @JUnit
- @Run
- @Test
- @Unit
In JUnit, the @Test annotation is used to denote a test method. It marks a method as a test case that should be run by the JUnit test runner.
Loading...
Related Quiz
- You are troubleshooting performance issues in a reactive Spring Boot application. The application is unable to handle a large number of simultaneous connections. How would you optimize the application to handle a higher number of concurrent users?
- You are tasked with creating a custom Auto Configuration that provides a set of beans only if a specific library is on the classpath. How would you approach this requirement?
- How can groups be used in Bean Validation to perform partial validation in Spring Boot?
- In a Spring Boot application, the _____ annotation allows the conditional caching of method return values based on the evaluation of a SpEL expression.
- In a Spring Security enabled project, which method is used to configure HTTP security?