Context caching across packages is prevented by using @AutoConfigure…
on a test class
#9282
Labels
Milestone
@AutoConfigure…
on a test class
#9282
Uh oh!
There was an error while loading. Please reload this page.
Context caching is not performed when two identically configured test classes are in different packages. For example:
The context will be loaded twice due to
AutoConfigurationPackages$Registrar
returning aPackageImport
for the test class fromdetermineImports(AnnotationMetadata)
. The test classes are in different packages (com.example.foo
andcom.example.bar
) so this is enough to prevent the cache keys from matching.The problem was introduced in 1.5 as part of the changes made in fa6a138 for #7953.
The text was updated successfully, but these errors were encountered: