Jul 18th, 2008, 04:30 AM
Autowiring happens before profile evaluation
I have a set of tests that are annotated with IfProfileValue in order to enable/disable them depending on the test context.
These tests require the autowirig of very costly to create services and sessions.
The problem is that the service are autowired, then the test profile is checked.
Isn't there a way to check that the test is enbaled before autowiring ? at least when the IfProfileValue is found on the test class rather than on a single tests method ?