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
Currently TestTypeExcludeFilter is plugged in using a ContextCustomizerFactory. This means that @TestConfiguration and @TestComponent beans are not filtered when using SpringApplication.from on the test classpath.
The text was updated successfully, but these errors were encountered:
Add `ExcludeFilterApplicationContextInitializer` to register the
`TestTypeExcludeFilter` for regular applications.
Prior to this commit, the filter was only registered using the
`ExcludeFilterContextCustomizerFactory` which meant that test components
were filtered in tests but not when using `SpringApplication.from` with
a test classpath.
Fixesspring-projectsgh-35206
Currently
TestTypeExcludeFilter
is plugged in using aContextCustomizerFactory
. This means that@TestConfiguration
and@TestComponent
beans are not filtered when usingSpringApplication.from
on the test classpath.The text was updated successfully, but these errors were encountered: