December 10, 2022
Answer:
Unit testing should not depend on any infrastructure framework / use it in some way in unit testing.
Spring framework advocates this non-invasive approach, thus your unit tests do not depend on Spring.
ððĻðð: Spring framework provides some mock objects and testing support classes
that are convenient to be used in unit testing (e.g. ððĻððĪððŦðĻðĐððŦððēððĻðŪðŦðð, ððĻððĪðð§ðŊðĒðŦðĻð§ðĶðð§ð...).
Look at the ðĻðŦð .ðŽðĐðŦðĒð§ð ððŦððĶðð°ðĻðŦðĪ.ðĶðĻððĪ package for more info.
#spring #certificationquestion #vcp
Testing in Spring Boot ð https://www.baeldung.com/spring-boot-testing