Details
-
Type: Improvement
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 3.0
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
-
Number of attachments :
Description
@UsingSpring (applies to Pico and Guice, I would assume) versus the use of Spring Test (@ContextConfiguration) does not cache the container and thus recreates it on every run.
Use of @ContextConfiguration caches the container (with a key made up of the location String array).
You can find this code in Spring Test in the TestContext class in the getApplicationContext method.
Enhancement would be to add a method to all the UsingXYZ annotations related to containers to cache the containers (always based on locations).