To create a simple unit test in Spring Boot, you can use the _____ annotation to load a minimal test context.

  • @Autowired
  • @RunWith
  • @SpringBootTest
  • @TestContext
In Spring Boot, the @SpringBootTest annotation is used to create a simple unit test and load a minimal test context. This allows you to test components of your application in isolation.
Add your answer
Loading...

Leave a comment

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