You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use of @MockBean and @SpyBean cause the configured test ApplicationContext to be cached under a different key in the context cache in the Spring TestContext Framework; however, this is not made apparent to users of Spring Boot's testing support, and the (potentially) undesirable side effects are not intuitive for the average user.
The use of
@MockBean
and@SpyBean
cause the configured testApplicationContext
to be cached under a different key in the context cache in the Spring TestContext Framework; however, this is not made apparent to users of Spring Boot's testing support, and the (potentially) undesirable side effects are not intuitive for the average user.See related discussion on Stack Overflow.
At the very least, a warning should be included in the "Mocking and spying beans" section of the Spring Boot reference manual.
The text was updated successfully, but these errors were encountered: