I have a custom CacheAwareContextLoaderDelegate to track context load exceptions to make tests using the same configuration fail fast, and use the spring.test.context.default.CacheAwareContextLoaderDelegate property to enable it.
It works in Spring 5.3.x, but in Spring 6 it does not work.
I see the issue that removed the property is #29061.
So how can I configure a custom CacheAwareContextLoaderDelegate in Spring 6?
Comment From: sbrannen
Hi @HzjNeverStop,
I am not sure if I understood the use case you described; however, it sounds like it might be the same as the following.
-
14182
If #14182 is implemented, would that suit your needs?
Comment From: HzjNeverStop
Hi @HzjNeverStop,
I am not sure if I understood the use case you described; however, it sounds like it might be the same as the following.
If #14182 is implemented, would that suit your needs?
yes,I register a custom CacheAwareContextLoaderDelegate to do same thing, It would be better if the authorities could provide a standard solution.
Comment From: sbrannen
FYI: the following issue has been resolved. Built-in support for a "context failure threshold" will come with Spring Framework 6.1.
-
14182