S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What does the @SpringBootTest annotation do?

  • (A) Starts the embedded database only
  • (B) Starts a full Spring application context for integration testing
  • (C) Used only to test controllers
  • (D) Runs tests without Spring context
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@SpringBootTest loads the complete Spring application context for integration tests.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.