#context-cache
Posts
-
Digging into Spring's Source 26: spring-test — SpringExtension, TestContext, MockMvc
Put one annotation on a test class and a container starts, beans get injected, and transactions roll back. We check in the real source how SpringExtension connects JUnit to Spring, how the context cache and its key start a context only once for the same configuration, how test transactions work, and how MockMvc runs the real DispatcherServlet without a server.