← Quiz: Testing Spring Boot: all 10 questions
Quiz: Testing Spring Boot · Question 10 of 10
What is the main problem with using @SpringBootTest for every test?
What is the main problem with using @SpringBootTest for every test?
- A.It cannot test controllers
- B.It does not support Mockito
- C.It starts the whole application, so the test suite becomes slow
- D.It cannot use a database
Answer & explanation
Correct answer: It starts the whole application, so the test suite becomes slow
Prefer many fast unit tests and slices, and a few full-app tests.
Can you get the rest right without peeking?
Take the timed Quiz: Testing Spring Boot quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →